Sending texture info to hlsl shader
-
- Posts: 51
- Joined: Tue Jan 02, 2007 11:04 pm
- Location: huntington beach
Sending texture info to hlsl shader
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.
Re: Sending texture info to hlsl shader
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