Adding Phong illumination to Texture Array

Hi,



im using UnshadedArray.j3md from TestTextureArray. I want to use it with Phong illumination so i’ve changed it to Lighting.j3md but this doesn’t work, its showing strange results:





Anybody know how to do this?

Because it is not made for this. You need to dig more into the fragemtn shader and se the differences, then you can wrtie a own fragemn shader for texturearrays that is capable of lighting and texture selecting.

1 Like

oh noes :frowning:



thanks