Search Unity

Question Linear Cubemaps

Discussion in 'General Graphics' started by Ikaroon, May 25, 2023.

  1. Ikaroon

    Ikaroon

    Joined:
    Jun 19, 2016
    Posts:
    32
    Hello everyone,

    I am working on a skybox shader and need a specific cubemap to be in linear color space. This cubemap is generated during runtime and I cannot set the linear flag on the cubemaps importer. However, it seems like this doesn't do anything anyway.

    When I inspect the cubemap I can see that all the sub textures are sRGB and all my values are screwed.

    Is there a way to create a cubemap using linear color space?

    Many thanks in advance
     
  2. Ikaroon

    Ikaroon

    Joined:
    Jun 19, 2016
    Posts:
    32
    Nevermind, I just found out about RenderTexture.dimension