mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-29 07:50:27 +00:00
Add support for loading amb green channels (shading)
This commit is contained in:
parent
b1cf8a25a9
commit
fbb86955ba
1 changed files with 4 additions and 4 deletions
|
@ -163,11 +163,11 @@ void main()
|
||||||
vec2 ambientUV = f_texcoord0;
|
vec2 ambientUV = f_texcoord0;
|
||||||
ambientUV.x *= ColorUVScaleU + ColorUVTranslateU;
|
ambientUV.x *= ColorUVScaleU + ColorUVTranslateU;
|
||||||
ambientUV.y *= ColorUVScaleV + ColorUVTranslateV;
|
ambientUV.y *= ColorUVScaleV + ColorUVTranslateV;
|
||||||
float intensity = texture(AmbientMap, ambientUV).r;
|
float ambient = 1 - texture(AmbientMap, ambientUV).r;
|
||||||
float unknown = texture(AmbientMap, ambientUV).g; //Unsually black
|
float shadows = 1 - texture(AmbientMap, ambientUV).g; //Unsually black
|
||||||
float ambient = texture(AmbientMap, ambientUV).b;
|
float cavity = texture(AmbientMap, ambientUV).b;
|
||||||
|
|
||||||
ao = 1 - intensity;
|
ao = (ambient * shadows);
|
||||||
}
|
}
|
||||||
|
|
||||||
vec3 emissionTerm = vec3(0);
|
vec3 emissionTerm = vec3(0);
|
||||||
|
|
Loading…
Reference in a new issue