restructure

This commit is contained in:
Nishi 2026-01-07 04:35:00 +09:00
commit 2c4198fbc6
Signed by: nishi
GPG key ID: 27EF69B208EB9343
5 changed files with 13 additions and 1 deletions

19
engine/resource/shadow.fs Normal file
View file

@ -0,0 +1,19 @@
#version 110
uniform sampler2DShadow texture;
varying vec4 shadow;
varying vec4 color;
uniform float solid_color;
uniform sampler2D texture_in;
void main (void){
vec4 c;
if(solid_color > 0.5){
c = color;
}else{
c = texture2D(texture_in, gl_TexCoord[1].st);
}
gl_FragColor = (shadow + (gl_Color - shadow) * shadow2DProj(texture, gl_TexCoord[0])) * c;
}