@typegpu/three 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs +1 -1
- package/index.mjs +1 -1
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -258,7 +258,7 @@ const wgslTypeToGlslType = {
|
|
|
258
258
|
|
|
259
259
|
function uniform(value, dataType) {
|
|
260
260
|
let glslType = wgslTypeToGlslType[dataType.type];
|
|
261
|
-
if (value.isNode) {
|
|
261
|
+
if (value.isNode || value.isColor) {
|
|
262
262
|
glslType = void 0;
|
|
263
263
|
}
|
|
264
264
|
return fromTSL(TSL.uniform(value, glslType), dataType);
|
package/index.mjs
CHANGED
|
@@ -237,7 +237,7 @@ const wgslTypeToGlslType = {
|
|
|
237
237
|
|
|
238
238
|
function uniform(value, dataType) {
|
|
239
239
|
let glslType = wgslTypeToGlslType[dataType.type];
|
|
240
|
-
if (value.isNode) {
|
|
240
|
+
if (value.isNode || value.isColor) {
|
|
241
241
|
glslType = void 0;
|
|
242
242
|
}
|
|
243
243
|
return fromTSL(uniform$1(value, glslType), dataType);
|