Page 1 of 1

Shader sampler border setting override

Posted: 23 Nov 2014, 20:03
by lerou
Hi,

this is a tricky one. In a nutshell, some settings performed in shader A override settings for shader B. This is Ventuz 4.05.02.

Take a look at the image:

Shader A sets the sampler settings hardcoded:

Code: Select all

sampler TexSampler : register(s[0]) = sampler_state
{
  AddressU = Border;
  AddressV = Border;
  Filter = Linear;
};
Shader B is in a parallel part of the tree. In the texture node (not in the shader itself!) the settings are:
  • Mag/Min: Point
  • U/V/W-Filter: Wrap
However the settings from Shader A override those done in the node in front of Shader B. Permanently! That means even after deleting the Shader Node A the effect remains. You'd have to save, close and reload in order for those overrides to disappear.

This goes even further:
  • Close all scenes
  • Open Scene bug_002 -> it looks as expected
  • Open bug_001 (make sure you haven't saved any changes there before)
  • Switch back to the still open bug_002 -> the settings here are overriden
greetings,
rou

Re: Shader sampler border setting override

Posted: 23 Nov 2014, 20:04
by lerou
here are the scenes.

greetings,
rou

Re: Shader sampler border setting override

Posted: 25 Nov 2014, 10:39
by Karol
I opened a Bug ticket for this.