Problem with ShaderCallback and RenderMonkey Shaders

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
porcus
Posts: 149
Joined: Sun May 27, 2007 6:24 pm
Location: Germany

Problem with ShaderCallback and RenderMonkey Shaders

Post by porcus »

Hello,

I'm trying to get the Bubble-Shader from Rendermonky working with
Irrlicht. But there are no informations, what I have to write in the
ShaderCallback class. Has someone a idea how I could find it out,
what I have to write in the ShaderCallback class ?
Silbermünze
Posts: 34
Joined: Thu Sep 15, 2005 12:27 pm
Location: Stuttgart, Germany

Post by Silbermünze »

I am trying something similar too at the moment (see post).
Loading a Rendermonkey GLSL shader with Irrlicht.
However I didn't get a reply yet.

I didn't have a look at the bubble shader yet, but in most cases you only have to set the variables that are labeled uniform in the vertex/pixel shader afaik. Furthermore you should set the id of the texture stage into the sampler2D variable. Maybe you want to have a look at the laval example of TGM's shader pack.
However I didn't get my shader to run in Irrlicht yet.
porcus
Posts: 149
Joined: Sun May 27, 2007 6:24 pm
Location: Germany

Post by porcus »

What's the sampler2D variable ? :oops:
(The shader I want to use is a D3D shader.)
Praetor
Posts: 42
Joined: Wed Jun 20, 2007 2:31 am

Post by Praetor »

A sampler2D is a 2D image or texture in hlsl/cg.
"Surely we don’t need to waste resources on pathfinding; they just need to walk along the shortest route from one place to another." - EA Producer
Post Reply