Import glsl material from 088 to 099

Hello, I’m trying to move a shader from 088.61480 to 099.16620 and everything seems to render without error but I don’t see it rendered and I don’t understand why. Something on the glsl side? Attached is the file and a screenshot, left side opened in 088, right side same file in 099. It will be great if there’s a fix so to be able to use this material also in 099. Thanks!


grid_glsl_ref088.toe (6.24 KB)

Hello,

I noticed this material was written with GLSL version 1.20.
TouchDesigner 099’s main supported version of GLSL is 3.30.

Many GLSL 1.20 materials will need to be ported to GLSL version 3.30 to render correctly in TouchDesigner 099.
In this particular case it appears to be something about how accessing camera matrices and uniforms changed.

You can find more information on this in the “Write a GLSL Material” wiki article:
derivative.ca/wiki099/index. … l#Overview

See sections “Major changes since TouchDesigner088” and “Changes from GLSL 1.20