You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was attempting to do some texture sampling from an png in a function, but I found some odd behaviour.
Make a colour source of colour ff00ff in an OBS scene and a 10x10 png of a different solid colour (I used ff8811). You can also create another colour source to sample from, it is not exclusive to loading from a graphics file.
Apply the following shader to the colour source, setting testTexture to the png.
You will observe that the colour being returned is the colour source, when it should be the colour from the texture.
Commenting out the float4 definition after the return OR replacing the GetColour call with sampling the testTexture directly has the desired behaviour and returns the sampled texture rather than the source.
OBS is 30.0 and plugin version is 2.1.3
The text was updated successfully, but these errors were encountered:
I was attempting to do some texture sampling from an png in a function, but I found some odd behaviour.
Make a colour source of colour ff00ff in an OBS scene and a 10x10 png of a different solid colour (I used ff8811). You can also create another colour source to sample from, it is not exclusive to loading from a graphics file.
Apply the following shader to the colour source, setting testTexture to the png.
You will observe that the colour being returned is the colour source, when it should be the colour from the texture.
Commenting out the float4 definition after the return OR replacing the GetColour call with sampling the testTexture directly has the desired behaviour and returns the sampled texture rather than the source.
OBS is 30.0 and plugin version is 2.1.3
The text was updated successfully, but these errors were encountered: