Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Replacement for textureCube in GLSL 150+?

I am wondering what the replacement for this function is. Do I simply call "texture" in as a replacement for this function call? Or is there a new way of doing this unlike 120 and before?

Here is what I have at the moment:

uniform samplerCube sampler;

[...]

fragColor = texture(sampler, centroi.xyz) * (ambient + specular + diffuse);
like image 724
Serguei Fedorov Avatar asked Oct 19 '25 04:10

Serguei Fedorov


1 Answers

The answer to this is yes. The textureCube function has been deprecated because they have created an overload in texture() that does the same thing. I guess this is a good way to unify everything into one call.

I'll leave this up just in case anyone else is looking for this!

like image 161
Serguei Fedorov Avatar answered Oct 21 '25 20:10

Serguei Fedorov