(type)
| 890 | * WebGL-specific implementation of imageLight shader creation |
| 891 | */ |
| 892 | _createImageLightShader(type) { |
| 893 | if (type === 'diffused') { |
| 894 | return new Shader( |
| 895 | this, |
| 896 | this._webGL2CompatibilityPrefix("vert", "highp") + |
| 897 | defaultShaders.imageLightVert, |
| 898 | this._webGL2CompatibilityPrefix("frag", "highp") + |
| 899 | defaultShaders.imageLightDiffusedFrag |
| 900 | ); |
| 901 | } else if (type === 'specular') { |
| 902 | return new Shader( |
| 903 | this, |
| 904 | this._webGL2CompatibilityPrefix("vert", "highp") + |
| 905 | defaultShaders.imageLightVert, |
| 906 | this._webGL2CompatibilityPrefix("frag", "highp") + |
| 907 | defaultShaders.imageLightSpecularFrag |
| 908 | ); |
| 909 | } |
| 910 | throw new Error(`Unknown imageLight shader type: ${type}`); |
| 911 | } |
| 912 | |
| 913 | |
| 914 | /* |
nothing calls this directly
no test coverage detected