(name, value)
| 869 | } |
| 870 | |
| 871 | setUniform3fv(name, value) { |
| 872 | if (this.uniform3fvCache.hasOwnProperty(name)) { |
| 873 | const cache = this.uniform3fvCache[name]; |
| 874 | if ( |
| 875 | value[0] === cache[0] && |
| 876 | value[1] === cache[1] && |
| 877 | value[2] === cache[2] |
| 878 | ) { |
| 879 | return; |
| 880 | } |
| 881 | } |
| 882 | this.uniform3fvCache[name] = value; |
| 883 | const loc = this.getUniformLocation(name); |
| 884 | this.context.uniform3fv(loc, value); |
| 885 | } |
| 886 | |
| 887 | setUniform3iv(name, value) { |
| 888 | if (this.uniform3ivCache.hasOwnProperty(name)) { |
no test coverage detected