1
0

add solar

This commit is contained in:
2024-04-28 20:12:17 +09:00
parent f10f4e2657
commit 6c10aac5b2
102 changed files with 147764 additions and 11 deletions

View File

@ -0,0 +1,19 @@
varying vec3 vColor;
void main(){
//Disc
// float strength = 1.0 - step(0.5, distance(gl_PointCoord, vec2(0.5)));
//Diffused point
// float strength = 1.0 - 2.0 * distance(gl_PointCoord, vec2(0.5));
//Light point
float strength = pow(1.0 - distance(gl_PointCoord, vec2(0.5)), 10.0);
//Color
vec3 color = mix(vec3(0.0), vColor, strength);
gl_FragColor = vec4(color, 1.0);
}