Ok guys, this isn't so much of a bug as it is a heads up over using the NvidiaCG implementation (I am using Irrlicht 1. 8 ).
You can't passing arrays of float and int arrays to CG shaders.
On another note, the CG integration only supports a limited number of data types, mainly ints, and floats. No support for char, short etc
NVidiaCG Shader Implementation Gotcha!
-
- Competition winner
- Posts: 688
- Joined: Mon Sep 10, 2012 8:51 am
Re: NVidiaCG Shader Implementation Gotcha!
Isn't NVidia going to dump CG? Or am I reading things wrong?
I suppose you could put this topic under "Everything 2d/3d Graphics".
Thanks for the heads up!
I suppose you could put this topic under "Everything 2d/3d Graphics".
Thanks for the heads up!
Re: NVidiaCG Shader Implementation Gotcha!
I figure it should be excluded from the next version of irrlicht because it is discontinued.
It is a very poor choice of api because it doesn't support arrays. This means, that multi-lighting shaders are kinda impossible because you can't pass in arrays of light positions / colours.
It is a very poor choice of api because it doesn't support arrays. This means, that multi-lighting shaders are kinda impossible because you can't pass in arrays of light positions / colours.
Re: NVidiaCG Shader Implementation Gotcha!
Yes, Cg support will be removed in v1.9.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes