Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

geometry shader in webgl

Discussion in 'Shaders' started by paskal007r, Jan 20, 2017.

  1. paskal007r

    paskal007r

    Joined:
    Sep 6, 2013
    Posts:
    68
    So I got this nice grass geometry shader going but when I went on to build for WebGL to put it to my portfolio, I just got a pink model.
    Are geometry shaders supported in webGL?
    If not, is there any alternative to use shaders to get the same effects in webGL in any way?
     
  2. paskal007r

    paskal007r

    Joined:
    Sep 6, 2013
    Posts:
    68
    to be more specific I got this warning:

    WARNING: Shader /:9089:3
    Unsupported: 'Custom/grass' - Pass '' has no vertex shader

    any clues about it?
     
  3. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,329
    No.

    Even in WebGL 2.0, which Unity only just started to support in Unity 5.5 and which most browsers don't support yet, does not support geometry shaders.
     
    mpeschel10 and paskal007r like this.
  4. paskal007r

    paskal007r

    Joined:
    Sep 6, 2013
    Posts:
    68
  5. Nyanpas

    Nyanpas

    Joined:
    Dec 29, 2016
    Posts:
    406
  6. Invertex

    Invertex

    Joined:
    Nov 7, 2013
    Posts:
    1,539
  7. Nyanpas

    Nyanpas

    Joined:
    Dec 29, 2016
    Posts:
    406
    Oh, well. I guess that's the case, then... :(
     
    deus0 likes this.