Dima Profile Topics Started Replies Created Favorites Forum Replies Created Viewing 2 posts - 1 through 2 (of 2 total) Author Posts October 26, 2017 at 1:22 pm in reply to: Apply shader to group or layer of objects #11330 DimaParticipant Could you reimplement default behavior in custom shader, then control which effect via uniforms? Or maybe use intermediate render targets per effect with default images? 0 October 25, 2017 at 8:26 pm in reply to: Apply shader to group or layer of objects #11318 DimaParticipant Hi Mark, Am I misunderstanding your above message that shaders cannot be overridden? Following code seems to work both ways. TIA. Monkey Local shader:Shader = New Shader( "someshader", LoadString("asset::data/someshader.glsl"), "" ) Local flags:TextureFlags = TextureFlags.Dynamic | TextureFlags.WrapST | TextureFlags.FilterMipmap Local format:PixelFormat = PixelFormat.RGBA8 ' create image with shader Local image1:Image = New Image(Width, Height, format, flags, shader) ' create image, then override shader Local image2:Image = New Image(Width, Height, format, flags) image2.Shader = shader 1234567891011 Local shader:Shader = New Shader( "someshader", LoadString("asset::data/someshader.glsl"), "" ) Local flags:TextureFlags = TextureFlags.Dynamic | TextureFlags.WrapST | TextureFlags.FilterMipmapLocal format:PixelFormat = PixelFormat.RGBA8 ' create image with shaderLocal image1:Image = New Image(Width, Height, format, flags, shader) ' create image, then override shaderLocal image2:Image = New Image(Width, Height, format, flags)image2.Shader = shader 0 Author Posts Viewing 2 posts - 1 through 2 (of 2 total)