DepthShadowmapCasterFp.glsl
资源名称:3dwind2.0.rar [点击查看]
上传用户:xhbjoy
上传日期:2014-10-07
资源大小:38068k
文件大小:0k
源码类别:
游戏引擎
开发平台:
Visual C++
- varying vec2 depth;
- void main()
- {
- #if LINEAR_RANGE
- float finalDepth = depth.x;
- #else
- float finalDepth = depth.x / depth.y;
- #endif
- // just smear across all components
- // therefore this one needs high individual channel precision
- gl_FragColor = vec4(finalDepth, finalDepth, finalDepth, 1);
- }