initTexture method
Implementation
void initTexture(Texture texture) {
if ( texture is CubeTexture ) {
textures.setTextureCube( texture, 0 );
}
else{
textures.setTexture2D(texture, 0);
}
state.unbindTexture();
}
void initTexture(Texture texture) {
if ( texture is CubeTexture ) {
textures.setTextureCube( texture, 0 );
}
else{
textures.setTexture2D(texture, 0);
}
state.unbindTexture();
}