- Home /
CRT/LCD screen shader (for materials)
I have never written a unity shader before and lack the skills to do so at the moment, however, I am asking for advice into how to create a shader that will mimic an LCD/CRT screen.
The purpose for this shader is to apply to a computer screen in my unity scene which will be used within a cutscene.
If you want anything else, please don't hesitate to ask and thank you in advance for your time.
Answer by Horz · Sep 26, 2015 at 05:07 PM
check out this vhs/crt shader for unity3d http://forum.unity3d.com/threads/released-vhs-pro-1-0-crt-screen-emulation.354578/
I'm looking for a shader for a material not an image effect.... unless I can adjust this to use with a material???
whoops then i mixed it up. sorry but atm not. im gonna do that in the future. write a shader for the in-game tv/screen.
An image effect is basically just a material attached to the render output of a camera, rather than an object in the scene.
@tanoshimi thank you. that's good to know. maybe then it won't be that difficult to implement. i shud search for some examples how to make material script out of Image Effect.
Answer by MakeCodeNow · Sep 05, 2015 at 03:21 AM
Gamasutra has had several good tutorials on this subject, like this one and this one. Also, search engines are your friend. One of these tutorial is the first result when searching for "crt shader" on Google.
I have already seen one of these but both of these are for image effects or post-process effects when I require a shader for a material for a single object in my scene.
Adapting those examples to work on a single object sounds like a great opportunity for learning.
I wouldn't know where to start, I have no experience with shader code
Answer by b005t3r · Feb 03, 2017 at 10:59 AM
I recently created this CRT post-process: https://www.assetstore.unity3d.com/en/#!/content/80048
I think the results are pretty good, haven't seen anything else like it on the Asset Store.
Here are the example images: