Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

Bug When applying shader, objects appear untextured (pink).

Discussion in 'Shaders' started by UTCLuisMoseley, Dec 12, 2022.

  1. UTCLuisMoseley

    UTCLuisMoseley

    Joined:
    Sep 29, 2022
    Posts:
    5
    This is my second ever post so I have never done any type of programming relating to shaders before. The project that I am creating involves a FOV rendering system. I have been following this trilogy of videos:
    whrre he explains the entire system. I have copied all of the code which works up until the 3rd episode where adding the shader results in this issue:

    upload_2022-12-12_12-51-40.png

    Scene without shader added
    VV VV VV
    upload_2022-12-12_12-53-14.png

    All of the script and shader information is available here: https://github.com/SebLague/Field-of-View/tree/master/Episode 03

    I believe the issue only resides within the shaders as without the shaders I get the desired result to some standard:


    Any help would be appreciated thank you!
     
  2. UTCLuisMoseley

    UTCLuisMoseley

    Joined:
    Sep 29, 2022
    Posts:
    5
    I would also like to mention that I have tried copying the same shader into a new shader and applying with identical results. My second attempt was to try upgrading render pipelines which I won’t work as they’re custom shaders.
     
  3. wwWwwwW1

    wwWwwwW1

    Joined:
    Oct 31, 2021
    Posts:
    369
    Hi, SRP (URP & HDRP) doesn't support surface shaders, you should change your project to Built-in Render Pipeline.