Merge pull request #9197 from lioncash/uber-pixel
UberShaderPixel: Migrate over to fmt
This commit is contained in:
commit
add2b44eb7
|
@ -685,7 +685,7 @@ ShaderCode GeneratePixelShaderCode(APIType api_type, const ShaderHostConfig& hos
|
|||
if (use_shader_blend)
|
||||
{
|
||||
// Store off a copy of the initial fb value for blending
|
||||
out.Write("\tfloat4 initial_ocol0 = FB_FETCH_VALUE;\n"
|
||||
out.WriteFmt("\tfloat4 initial_ocol0 = FB_FETCH_VALUE;\n"
|
||||
"\tfloat4 ocol0;\n"
|
||||
"\tfloat4 ocol1;\n");
|
||||
}
|
||||
|
@ -1512,7 +1512,7 @@ static void WriteFog(ShaderCode& out, const pixel_shader_uid_data* uid_data)
|
|||
if (uid_data->fog_RangeBaseEnabled)
|
||||
{
|
||||
out.SetConstantsUsed(C_FOGF, C_FOGF);
|
||||
out.Write("\tfloat offset = (2.0 * (rawpos.x / " I_FOGF ".w)) - 1.0 - " I_FOGF ".z;\n"
|
||||
out.WriteFmt("\tfloat offset = (2.0 * (rawpos.x / " I_FOGF ".w)) - 1.0 - " I_FOGF ".z;\n"
|
||||
"\tfloat floatindex = clamp(9.0 - abs(offset) * 9.0, 0.0, 9.0);\n"
|
||||
"\tuint indexlower = uint(floatindex);\n"
|
||||
"\tuint indexupper = indexlower + 1u;\n"
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue