setTextureCube method
Implementation
void setTextureCube(Texture texture, int slot) {
final textureProperties = properties.get(texture);
if (texture.version > 0 && textureProperties["__version"] != texture.version) {
uploadCubeTexture(textureProperties, texture, slot);
return;
}
state.activeTexture(WebGL.TEXTURE0 + slot);
state.bindTexture(WebGL.TEXTURE_CUBE_MAP, textureProperties["__webglTexture"]);
}