@luma.gl/shadertools 9.0.16 → 9.0.17
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/dist/dist.dev.js +3 -22
- package/dist/dist.min.js +65 -65
- package/dist/index.cjs +3 -22
- package/dist/index.cjs.map +2 -2
- package/dist/lib/shader-module/shader-module.d.ts +22 -13
- package/dist/lib/shader-module/shader-module.d.ts.map +1 -1
- package/dist/lib/shader-module/shader-pass.d.ts +4 -2
- package/dist/lib/shader-module/shader-pass.d.ts.map +1 -1
- package/dist/lib/utils/uniform-types.d.ts +49 -0
- package/dist/lib/utils/uniform-types.d.ts.map +1 -0
- package/dist/lib/utils/uniform-types.js +1 -0
- package/dist/modules/engine/picking/picking.d.ts +5 -5
- package/dist/modules/engine/picking/picking.d.ts.map +1 -1
- package/dist/modules/engine/picking/picking.js +2 -2
- package/dist/modules/engine/project/project.d.ts +9 -8
- package/dist/modules/engine/project/project.d.ts.map +1 -1
- package/dist/modules/lighting/lights/lighting-uniforms.d.ts +13 -13
- package/dist/modules/lighting/lights/lighting-uniforms.d.ts.map +1 -1
- package/dist/modules/lighting/no-material/dirlight.d.ts +2 -2
- package/dist/modules/lighting/no-material/dirlight.d.ts.map +1 -1
- package/dist/modules/lighting/no-material/dirlight.js +1 -1
- package/dist/modules/lighting/pbr-material/pbr-material.d.ts +14 -13
- package/dist/modules/lighting/pbr-material/pbr-material.d.ts.map +1 -1
- package/dist/modules/lighting/pbr-material/pbr-material.js +0 -11
- package/dist/modules/postprocessing/image-blur-filters/tiltshift.d.ts +2 -2
- package/dist/modules/postprocessing/image-blur-filters/tiltshift.d.ts.map +1 -1
- package/dist/modules/postprocessing/image-blur-filters/triangleblur.d.ts +1 -1
- package/dist/modules/postprocessing/image-blur-filters/triangleblur.d.ts.map +1 -1
- package/dist/modules/postprocessing/image-blur-filters/zoomblur.d.ts +1 -1
- package/dist/modules/postprocessing/image-blur-filters/zoomblur.d.ts.map +1 -1
- package/dist/modules/postprocessing/image-fun-filters/colorhalftone.d.ts +1 -1
- package/dist/modules/postprocessing/image-fun-filters/colorhalftone.d.ts.map +1 -1
- package/dist/modules/postprocessing/image-fun-filters/dotscreen.d.ts +1 -1
- package/dist/modules/postprocessing/image-fun-filters/dotscreen.d.ts.map +1 -1
- package/dist/modules/postprocessing/image-fun-filters/hexagonalpixelate.d.ts +1 -1
- package/dist/modules/postprocessing/image-fun-filters/hexagonalpixelate.d.ts.map +1 -1
- package/dist/modules/postprocessing/image-fun-filters/magnify.d.ts +2 -2
- package/dist/modules/postprocessing/image-fun-filters/magnify.d.ts.map +1 -1
- package/dist/modules/postprocessing/image-warp-filters/bulgepinch.d.ts +1 -1
- package/dist/modules/postprocessing/image-warp-filters/bulgepinch.d.ts.map +1 -1
- package/dist/modules-webgl1/project/project.d.ts +6 -4
- package/dist/modules-webgl1/project/project.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/lib/shader-module/shader-module.ts +24 -12
- package/src/lib/shader-module/shader-pass.ts +7 -4
- package/src/lib/utils/uniform-types.ts +91 -0
- package/src/modules/engine/picking/picking.ts +9 -9
- package/src/modules/engine/project/project.ts +10 -9
- package/src/modules/lighting/lights/lighting-uniforms.ts +16 -16
- package/src/modules/lighting/no-material/dirlight.ts +3 -3
- package/src/modules/lighting/pbr-material/pbr-material.ts +14 -24
- package/src/modules/postprocessing/image-blur-filters/tiltshift.ts +2 -2
- package/src/modules/postprocessing/image-blur-filters/triangleblur.ts +1 -1
- package/src/modules/postprocessing/image-blur-filters/zoomblur.ts +1 -1
- package/src/modules/postprocessing/image-fun-filters/colorhalftone.ts +1 -1
- package/src/modules/postprocessing/image-fun-filters/dotscreen.ts +1 -1
- package/src/modules/postprocessing/image-fun-filters/hexagonalpixelate.ts +1 -1
- package/src/modules/postprocessing/image-fun-filters/magnify.ts +2 -2
- package/src/modules/postprocessing/image-warp-filters/bulgepinch.ts +1 -1
- package/src/modules-webgl1/project/project.ts +8 -7
package/dist/dist.dev.js
CHANGED
|
@@ -4909,7 +4909,7 @@ float tan_fp32(float a) {
|
|
|
4909
4909
|
};
|
|
4910
4910
|
|
|
4911
4911
|
// src/modules/engine/picking/picking.ts
|
|
4912
|
-
var DEFAULT_HIGHLIGHT_COLOR =
|
|
4912
|
+
var DEFAULT_HIGHLIGHT_COLOR = [0, 1, 1, 1];
|
|
4913
4913
|
var vs = glsl`\
|
|
4914
4914
|
uniform pickingUniforms {
|
|
4915
4915
|
float isActive;
|
|
@@ -5058,7 +5058,7 @@ vec4 picking_filterColor(vec4 color) {
|
|
|
5058
5058
|
isAttribute: false,
|
|
5059
5059
|
isHighlightActive: false,
|
|
5060
5060
|
useFloatColors: true,
|
|
5061
|
-
highlightedObjectColor:
|
|
5061
|
+
highlightedObjectColor: [0, 0, 0],
|
|
5062
5062
|
highlightColor: DEFAULT_HIGHLIGHT_COLOR
|
|
5063
5063
|
},
|
|
5064
5064
|
getUniforms
|
|
@@ -5300,7 +5300,7 @@ vec4 dirlight_filterColor(vec4 color) {
|
|
|
5300
5300
|
lightDirection: "vec3<f32>"
|
|
5301
5301
|
},
|
|
5302
5302
|
defaultUniforms: {
|
|
5303
|
-
lightDirection:
|
|
5303
|
+
lightDirection: [1, 1, 2]
|
|
5304
5304
|
},
|
|
5305
5305
|
getUniforms: getUniforms3
|
|
5306
5306
|
};
|
|
@@ -6054,25 +6054,6 @@ vec4 pbr_filterColor(vec4 colorUnused)
|
|
|
6054
6054
|
scaleDiffBaseMR: "vec4<f32>",
|
|
6055
6055
|
scaleFGDSpec: "vec4<f32>"
|
|
6056
6056
|
},
|
|
6057
|
-
bindings: {
|
|
6058
|
-
baseColorSampler: { type: "texture", location: 8 },
|
|
6059
|
-
// #ifdef HAS_BASECOLORMAP
|
|
6060
|
-
normalSampler: { type: "texture", location: 9 },
|
|
6061
|
-
// #ifdef HAS_NORMALMAP
|
|
6062
|
-
emissiveSampler: { type: "texture", location: 10 },
|
|
6063
|
-
// #ifdef HAS_EMISSIVEMAP
|
|
6064
|
-
metallicRoughnessSampler: { type: "texture", location: 11 },
|
|
6065
|
-
// #ifdef HAS_METALROUGHNESSMAP
|
|
6066
|
-
occlusionSampler: { type: "texture", location: 12 },
|
|
6067
|
-
// #ifdef HAS_OCCLUSIONMAP
|
|
6068
|
-
// IBL Samplers
|
|
6069
|
-
diffuseEnvSampler: { type: "texture", location: 13 },
|
|
6070
|
-
// #ifdef USE_IBL (samplerCube)
|
|
6071
|
-
specularEnvSampler: { type: "texture", location: 14 },
|
|
6072
|
-
// #ifdef USE_IBL (samplerCube)
|
|
6073
|
-
brdfLUT: { type: "texture", location: 15 }
|
|
6074
|
-
// #ifdef USE_IBL
|
|
6075
|
-
},
|
|
6076
6057
|
dependencies: [lighting]
|
|
6077
6058
|
};
|
|
6078
6059
|
|