3
이 함수의 대체 코드가 무엇인지 궁금합니다. 이 함수 호출 대신 간단히 "texture"를 호출합니까? 아니면 120과 다르기 전에 이것을하기위한 새로운 방법이 있습니까? 이것에GLSL 150+에서 textureCube를 대체 하시겠습니까?
uniform samplerCube sampler;
[...]
fragColor = texture(sampler, centroi.xyz) * (ambient + specular + diffuse);