Setting the variable in code

We have moved the numpixels variable from the fragment shader into the material script code. Now, let's try to set the value from the application code itself.

Get Ogre 3D 1.7 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.