I needed to pass a uniform ivec2 for a GLSL shader I was playing with (found at http://www.lighthouse3d.com/opengl/ledshader/ ) Alas, I only seem to be able to pass floats, becuase f32 requirement on the 'set constant command' ...
How can I pass a brace of ints?
Also, let us say I Have uniform ...
Search found 11 matches
- Thu Jun 12, 2008 10:32 pm
- Forum: Beginners Help
- Topic: Int to Shader
- Replies: 0
- Views: 201
- Wed Jun 04, 2008 2:43 am
- Forum: Beginners Help
- Topic: Mesh to Shader
- Replies: 3
- Views: 403
- Wed Jun 04, 2008 2:34 am
- Forum: Beginners Help
- Topic: Mesh to Shader
- Replies: 3
- Views: 403
Mesh to Shader
I was wondering how exactly I might pass a mesh to a shader, and derive a matrix, as I can do with textures, for say, blending.
Also, the only way I can even achieve this is if the texture has already been associated with the node itself, you know, setMaterialTexture(0,1,...
as I'm not sure how to ...
Also, the only way I can even achieve this is if the texture has already been associated with the node itself, you know, setMaterialTexture(0,1,...
as I'm not sure how to ...
- Wed Jun 04, 2008 2:03 am
- Forum: Advanced Help
- Topic: strange shader attempt
- Replies: 5
- Views: 2465
- Wed Jun 04, 2008 1:54 am
- Forum: Beginners Help
- Topic: Shader question(solved)
- Replies: 2
- Views: 417
- Mon May 26, 2008 8:32 pm
- Forum: Advanced Help
- Topic: Lightmap and AlphaChannel for a material.
- Replies: 9
- Views: 1009
- Sat May 24, 2008 2:39 pm
- Forum: Advanced Help
- Topic: Lightmap and AlphaChannel for a material.
- Replies: 9
- Views: 1009
http://www.clockworkcoders.com/oglsl/tutorial7.htm
This may be something of the nature you are looking for.
Not to suggest that internal shading is the only POSSIBLE way to do it, but I can't say.
This may be something of the nature you are looking for.
Not to suggest that internal shading is the only POSSIBLE way to do it, but I can't say.
- Thu Feb 21, 2008 7:59 pm
- Forum: Beginners Help
- Topic: Apparent IrrEdit-Irrlicht Display Discrepency
- Replies: 5
- Views: 375
Gracias
I simply moved to 1.4 and that solved the sphere problem. I've yet to upgrade openGL, but I'll try it sometime soon.
I saw the square and its hypotenuse in wire frame mode.
Snow days are AWESOME! Though you know how back in the prop days planes would occasionally be catapulted into an airborne ...
I saw the square and its hypotenuse in wire frame mode.
Snow days are AWESOME! Though you know how back in the prop days planes would occasionally be catapulted into an airborne ...
- Thu Feb 21, 2008 12:17 am
- Forum: Beginners Help
- Topic: Apparent IrrEdit-Irrlicht Display Discrepency
- Replies: 5
- Views: 375
- Wed Feb 20, 2008 11:18 pm
- Forum: Beginners Help
- Topic: Apparent IrrEdit-Irrlicht Display Discrepency
- Replies: 5
- Views: 375
- Mon Feb 18, 2008 9:07 pm
- Forum: Beginners Help
- Topic: Apparent IrrEdit-Irrlicht Display Discrepency
- Replies: 5
- Views: 375
Apparent IrrEdit-Irrlicht Display Discrepency
Forgive me if this is relating to some trivial aspect of my ignorance, but I have noticed that when I use IrrEdit (1.4alpha, I believe) to wrap a 'flat-map' of the world around a simple sphere, it works fine. When however, Irrlicht 1.3 compiles into full-screen mode, the globe somehow becomes a ...