fix SSS with colored shadows. FIX VPS not working.

This commit is contained in:
Xonk
2024-03-21 19:52:55 -04:00
parent 1cfb3f2f8c
commit 4bd3510497
8 changed files with 117 additions and 80 deletions

View File

@ -44,7 +44,7 @@ float blueNoise(){
void main() {
gl_FragData[0] = vec4(1);
gl_FragData[0] = texture2D(tex,texcoord.xy) * color;

View File

@ -123,8 +123,8 @@ void main() {
color = gl_Color;
vec3 position = mat3(gl_ModelViewMatrix) * vec3(gl_Vertex) + gl_ModelViewMatrix[3].xyz;
playerpos = vec4(0.0);
playerpos = gbufferModelViewInverse * (gl_ModelViewMatrix * gl_Vertex);
// playerpos = vec4(0.0);
// playerpos = gbufferModelViewInverse * (gl_ModelViewMatrix * gl_Vertex);
// mat4 Custom_ViewMatrix = BuildShadowViewMatrix(LightDir);
// mat4 Custom_ProjectionMatrix = BuildShadowProjectionMatrix();
@ -197,6 +197,8 @@ void main() {
if(mc_Entity.x == 8 ) gl_Position.w = -1.0;
// color.a = 1.0;
// if(mc_Entity.x != 10002) color.a = 0.0;
// materials = 0.0;