This commit is contained in:
MrZ_26
2020-02-04 19:41:15 +08:00
parent 0dbdc9fe42
commit c1b334963b
25 changed files with 238 additions and 214 deletions

View File

@@ -12,5 +12,5 @@ vec4 effect(vec4 color,Image texture,vec2 texture_coords,vec2 screen_coords){
vec4 data=Texel(texture,(vec2(-r*sin(theta),-r*cos(theta))*.5+.5));//vec2()..是遮光物采样的coord
if(data.a>.1)return vec4(vec3(y/yresolution),1.);//碰撞检测,像素透明度>.1即透光
}
return vec4(vec3(1),1.);//返回最远距离1
return vec4(1,1,1,1);//返回最远距离1
}