Lines Matching refs:float3
74 static inline float3 cubeTexcoords(float2 texcoords, int face) in cubeTexcoords()
80 return float3(1.0, -texcoords.y, -texcoords.x); in cubeTexcoords()
82 return float3(-1.0, -texcoords.y, texcoords.x); in cubeTexcoords()
84 return float3(texcoords.x, 1.0, texcoords.y); in cubeTexcoords()
86 return float3(texcoords.x, -1.0, -texcoords.y); in cubeTexcoords()
88 return float3(texcoords.x, -texcoords.y, 1.0); in cubeTexcoords()
90 return float3(-texcoords.x, -texcoords.y, -1.0); in cubeTexcoords()
92 return float3(texcoords, 0); in cubeTexcoords()
114 float3 linear1 = color.rgb / 12.92; in sRGBtoLinear()
115 float3 linear2 = pow((color.rgb + float3(0.055)) / 1.055, 2.4); in sRGBtoLinear()
116 float3 factor = float3(color.rgb <= float3(0.04045)); in sRGBtoLinear()
117 float4 linear = float4(factor * linear1 + float3(1.0 - factor) * linear2, color.a); in sRGBtoLinear()