Hi,
I was wondering how to use vertex textures in HLSL shaders in V5... In V4 you were able to define the texture stage as Vertex1 or Vertex2.
Was this changed to the displacement map stage (would make most sense)? I tried with this code snippet, but it looks like the texture isn't sampled at all (no displacement):
float4x4 WorldViewProjection : WORLDVIEWPROJECTION;
sampler Vertex1 : register(s0);
float lod=0;
// Vertex shader program input
struct VS_INPUT
{
float4 Position : POSITION;
float4 Texcoord : TEXCOORD0;
};
// Vertex shader program output
struct VS_OUTPUT
{
float4 Position : POSITION;
float4 Texcoord : TEXCOORD0;
};
// Vertex Shader Program
VS_OUTPUT VS( VS_INPUT Input )
{
VS_OUTPUT Output;
Output.Texcoord = Input.Texcoord;
float4 displace = tex2Dlod(Vertex1,float4(Input.Texcoord.xy,0,lod));
Output.Position = mul(Input.Position + displace, WorldViewProjection);
return Output;
}
Also the option to explicitly define the texture stage has gone as well with the new material system. Or is there any way to define or overwrite one specific stage?
Thanks for any hints, Flo
Hello Ventuzians!
THE FORUMS ARE CLOSED!
Please join our discord server HERE!! << click me
We are shutting our Ventuz Forum, but don't worry, it will all be archived for you to search in if you have a query. From now on, please add all your comments, questions or observations into our Discord Server
Thanks for the great time - see you on discord!!
Dee, Karol, Daniel and the whoooole Product and Support team!
THE FORUMS ARE CLOSED!
Please join our discord server HERE!! << click me
We are shutting our Ventuz Forum, but don't worry, it will all be archived for you to search in if you have a query. From now on, please add all your comments, questions or observations into our Discord Server
Thanks for the great time - see you on discord!!
Dee, Karol, Daniel and the whoooole Product and Support team!
HLSL Vertex Textures in V5
Moderator: Support
Re: HLSL Vertex Textures in V5
Would be nice to get the answer.
Until then: Copy paste the old nodes from V4
Until then: Copy paste the old nodes from V4
Re: HLSL Vertex Textures in V5
Hey..
I forwarded the issue already to our specialist.. he is out of the office for some days and will reply asap
All the best
Dee
(Typos from mobile)
I forwarded the issue already to our specialist.. he is out of the office for some days and will reply asap
All the best
Dee
(Typos from mobile)
Re: HLSL Vertex Textures in V5
Is there any update from the specialist?
- Dierk Ohlerich
- Posts: 74
- Joined: 10 Jul 2012, 09:01
- Location: Hamburg, Germany
Re: HLSL Vertex Textures in V5
yes, Copy paste the old nodes from V4 is the way to do it for now.
-- Dierk Ohlerich