Sending texture info to hlsl shader

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
darksmaster923
Posts: 51
Joined: Tue Jan 02, 2007 11:04 pm
Location: huntington beach

Sending texture info to hlsl shader

Post by darksmaster923 »

Hey, there has been a couple threads about this with glsl shaders, but not hlsl. I've heard about setting the normal map texture to another layer, but nothings really working as I would like. Can anyone tell me the exact process for this?
Programmers are merely tools to convert caffeine into code.
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: Sending texture info to hlsl shader

Post by Nadro »

As You said, just bind a normal map texture into a next texture layer. In HLSL You will get this texture by calling "register(sX)" where X is a layer number eg: "sampler2D NormalTexture: register(s1);".
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
Post Reply