提交 f7d71444 编写于 作者: O oguzeroglu

Refactoring.

上级 34f1d84c
...@@ -73,22 +73,22 @@ function WebGLRenderStates() { ...@@ -73,22 +73,22 @@ function WebGLRenderStates() {
var hash; var hash;
if ( hashCache [ scene.id ] ) { if ( hashCache[ scene.id ] ) {
hash = hashCache [ scene.id ] [ camera.id ]; hash = hashCache[ scene.id ][ camera.id ];
if ( hash === undefined ) { if ( hash === undefined ) {
hash = scene.id + ',' + camera.id; hash = scene.id + ',' + camera.id;
hashCache [ scene.id ] [ camera.id ] = hash; hashCache[ scene.id ][ camera.id ] = hash;
} }
} else { } else {
hash = scene.id + ',' + camera.id; hash = scene.id + ',' + camera.id;
hashCache [ scene.id ] = {}; hashCache[ scene.id ] = {};
hashCache [ scene.id ][ camera.id ] = hash; hashCache[ scene.id ][ camera.id ] = hash;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册