Search Unity

  1. Calling all beginners! Join the FPS Beginners Mods Challenge until December 13.
    Dismiss Notice
  2. It's Cyber Week at the Asset Store!
    Dismiss Notice

geometry shader in webgl

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

  1. paskal007r

    paskal007r

    Joined:
    Sep 6, 2013
    Posts:
    66
    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:
    66
    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:
    7,655
    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.
     
    paskal007r likes this.
  4. paskal007r

    paskal007r

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

    Nyanpas

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

    Invertex

    Joined:
    Nov 7, 2013
    Posts:
    936
  7. Nyanpas

    Nyanpas

    Joined:
    Dec 29, 2016
    Posts:
    109
    Oh, well. I guess that's the case, then... :(