Shader effect, unknown type
HI I am trying to use a Shader Effect on an Image in Unity.
The code is happy to run in Blend (but gives a weird effect)
But its giving me a error " Unknown type 'NoesisGUIExtensions.TintEffect'" when it runs in Unity?
Am I doing something obviously wrong?
(v3.1.4)
The code is happy to run in Blend (but gives a weird effect)
But its giving me a error " Unknown type 'NoesisGUIExtensions.TintEffect'" when it runs in Unity?
Am I doing something obviously wrong?
(v3.1.4)
Code: Select all
xmlns:noesis="clr-namespace:NoesisGUIExtensions;assembly=Noesis.GUI.Extensions"
<Image
Name="Basemap"
Width="800"
Height="600"
Margin="0,0,0,0"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Source="{Binding StoryImage}"
Stretch="UniformToFill" >
<Image.Effect>
<noesis:TintEffect Color="Orange"/>
</Image.Effect>
</Image>
Re: Shader effect, unknown type
Before going into more detail, have you tried the example "VideoEffect" included in our package? It comes with a Tint effect.
Re: Shader effect, unknown type
I have had a look and successfully got my image tinting working via the examples approach of adding a new ShaderEffect class & a shader into Unity.
Out of interest does the NoesisApp Tinting shader described here still work?
https://www.noesisengine.com/docs/App.S ... s_doc_wrap
or was I using it incorrectly?
Out of interest does the NoesisApp Tinting shader described here still work?
https://www.noesisengine.com/docs/App.S ... s_doc_wrap
or was I using it incorrectly?
Re: Shader effect, unknown type
NoesisApp shaders are not available in Unity. We have plans to include them in the future but I think it is always going to be better implementing your own specific shader tailored to what you need in your game.
Note also that for tinting, a Shader Brush is going to be more efficient. For example see MonochromeBrushShader
Note also that for tinting, a Shader Brush is going to be more efficient. For example see MonochromeBrushShader
Who is online
Users browsing this forum: Semrush [Bot] and 2 guests