我花了20个教程才能让这个工作。做玻璃珠子。这个过程需要20个教程,因为大部分教程都有自己的错误。 我已经忘记了哪些教程让它在原来的项目中工作。 但在一个新的项目中,一个新的项目中使用了最新版本,还是一个复制的项目中,.shader 都不会工作。

原来的项目是在Unity 6.2.0f1中。新项目是在6.5.1f1中。

我理解我可能需要重新编写整个.shader。但我希望能在这个问题上得到一些帮助。

https://preview.redd.it/qfeprussrt9h1.png?width=1332&format=png&auto=webp&s=8ecb5265b9d7ba5224628aeae7b2cc30ffc9c493

https://preview.redd.it/x8ds66cbst9h1.png?width=1320&format=png&auto=webp&s=ea13816352ba4ea9ee0439cd62a9963d257e175a

https://preview.redd.it/vdeygryest9h1.png?width=1325&format=png&auto=webp&s=0583392122d9382b2452127d3c452a71eea42658

在预览中它看起来很好。但是在场景中它却不会工作。