提交 a83440c6 编写于 作者: M Mr.doob

shadowmap_vertex: added directives back (broke external shaders)

上级 592dd91b
#ifdef USE_SHADOWMAP
for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {
#if NUM_DIR_LIGHTS > 0
vDirectionalShadowCoord[ i ] = directionalLights[ i ].shadowMatrix * worldPosition;
for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {
}
vDirectionalShadowCoord[ i ] = directionalLights[ i ].shadowMatrix * worldPosition;
}
#endif
#if NUM_SPOT_LIGHTS > 0
for ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {
......@@ -12,10 +18,16 @@
}
#endif
#if NUM_POINT_LIGHTS > 0
for ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {
vPointShadowCoord[ i ] = pointLights[ i ].shadowMatrix * worldPosition;
}
#endif
#endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册