mirror of https://github.com/AxioDL/metaforce.git
CModelShaders: Update kRGBToYPrime approximation
Fixes opacity issues with arm cannon, HUD & more
This commit is contained in:
parent
8b597112be
commit
bbf66133c5
|
@ -21,7 +21,7 @@ TBINDING11 uniform samplerCube reflectionTex;
|
|||
TBINDING11 uniform sampler2D reflectionTex;
|
||||
#endif
|
||||
|
||||
const vec3 kRGBToYPrime = vec3(0.257, 0.504, 0.098);
|
||||
const vec3 kRGBToYPrime = vec3(0.299, 0.587, 0.114);
|
||||
|
||||
/*
|
||||
#if defined(ALPHA_%s)
|
||||
|
|
|
@ -20,7 +20,7 @@ TextureCube reflectionTex : register(t11);
|
|||
Texture2D reflectionTex : register(t11);
|
||||
#endif
|
||||
|
||||
static const float3 kRGBToYPrime = float3(0.257, 0.504, 0.098);
|
||||
static const float3 kRGBToYPrime = float3(0.299, 0.587, 0.114);
|
||||
|
||||
/*
|
||||
#if defined(ALPHA_%s)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
constant float3 kRGBToYPrime = float3(0.257, 0.504, 0.098);
|
||||
constant float3 kRGBToYPrime = float3(0.299, 0.587, 0.114);
|
||||
|
||||
/*
|
||||
#if defined(ALPHA_%s)
|
||||
|
|
Loading…
Reference in New Issue