hecomi / UnityWaterSurface

Water Surface Simulation using CutomRenderTexture in Unity 2017.1
http://tips.hecomi.com/entry/2017/05/17/020037
250 stars 37 forks source link

Problem with CustomRenderTexture #1

Closed wyb969 closed 5 years ago

wyb969 commented 6 years ago

The project in my PC can't work. It report a error about "Custom Render Texture". The console shows that "error CS0246: The type or namespace name `CustomRenderTexture' could not be found". I have write the using UnityEngine. So, I'm very confused. My unity Edition is 5.6.0f3(64 bit)... So, I'm really hoping you can help me with this problem. Thank you.

hippocoder commented 6 years ago

This feature is introduced in 2017.1 so it will not work for you.

https://docs.unity3d.com/Manual/CustomRenderTextures.html

wyb969 commented 6 years ago

well, thanks, I find the difference about Edition. By the way , Could I make the water ripple effect on the lower Edition ? Can I use the Render Texture to replace the Custom Render Texture? Thanks ,again.

hecomi commented 6 years ago

Yes you can. CustomRenderTexture is a alias to use RenderTexture to be able to refer it as _SelfTexture2D. If you can create RenderTexture by yourself and give it to your shader`, you can do the same thing as this demo.