Shader GetPuffShader(Billboards bl) { if (_puffringsh == null) { _puffringsh = bl.GetShader("nebula_extpuff.frag"); _ptex0 = _puffringsh.GetLocation("tex0"); _pfogcolor = _puffringsh.GetLocation("FogColor"); _pfogfactor = _puffringsh.GetLocation("FogFactor"); } return _puffringsh; }
Shader GetRadialShader(Billboards bl) { if (_radialsh == null) { _radialsh = bl.GetShader("sun_radial.frag"); _radialtex0 = _radialsh.GetLocation("tex0"); _radialinner = _radialsh.GetLocation("innercolor"); _radialouter = _radialsh.GetLocation("outercolor"); _radialexpand = _radialsh.GetLocation("expand"); } return(_radialsh); }
Shader GetSpineShader(Billboards bl) { if (_spinesh == null) { _spinesh = bl.GetShader("sun_spine.frag"); _spinetex0 = _spinesh.GetLocation("tex0"); _spineinner = _spinesh.GetLocation("innercolor"); _spineouter = _spinesh.GetLocation("outercolor"); _spinealpha = _spinesh.GetLocation("alpha"); } return(_spinesh); }