Page 1 of 1

Change Render Type during Runtime

PostPosted: Sun Mar 24, 2019 9:45 pm
by AiSard
Is it possible to change a shader's Render Type/Queue from Transparent/Transparent to Opaque/Geometry during runtime? By script or otherwise.

Trying to achieve a Depth of Field effect and found that Transparent objects don't play well with it as it doesn't have Depth Information. But manually switching to Opaque/Geometry during Play Mode seems to work, trying to find a way to do it with script.

I've seen a few posts that seem to do it, but require fiddling with the shader itself which I'm unsure how to do with amplify shaders.

Re: Change Render Type during Runtime

PostPosted: Mon Apr 01, 2019 2:52 pm
by Amplify_Borba
Hello, apologies for the delay in our response!

You may access and modify certain parameters of your materials through scripting, such as the render queue, and we provide a few samples - ForceShield, Smear - that make use of scripts and should help you understand how to achieve this.

You may at any time manually edit your shader's code, but if you load it up into ASE and compile then you will lose all manual changes.