@volter/blender-engine 0.1.43 → 0.1.44

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.
@@ -214,11 +214,15 @@ function prop<T>(node: GraphNode, name: string): T {
214
214
  * Y-up world by the exact permutation (x, y, z) -> (x, z, -y)
215
215
  * (`blender-runtime-view.ts`), so every world-space quantity handed to the
216
216
  * library goes back through `blender_from_three`, and a normal the graph
217
- * returns comes out through its transpose. */
217
+ * returns comes out through its transpose. A transmissive material's fragment shader already
218
+ * declares `modelMatrix` (three's `transmission_pars_fragment`), so the prelude yields it there:
219
+ * declared twice, the Stoneguard file's water failed to compile ("'modelMatrix' : redefinition"). */
218
220
  const EEVEE_GLOBALS = `
219
221
  #define GPU_FRAGMENT_SHADER
220
222
  #define FrontFacing gl_FrontFacing
223
+ #ifndef USE_TRANSMISSION
221
224
  uniform mat4 modelMatrix;
225
+ #endif
222
226
  const mat3 blender_from_three = mat3(1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, -1.0, 0.0);
223
227
  const mat4 blender_from_three4 = mat4(blender_from_three);
224
228
  struct BlenderGlobalData { vec3 P; vec3 N; vec3 Ng; vec3 Ni; bool is_strand; vec3 curve_T; vec2 barycentric_coords; };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@volter/blender-engine",
3
3
  "author": "Volter AI, Inc.",
4
4
  "license": "GPL-3.0-or-later",
5
- "version": "0.1.43",
5
+ "version": "0.1.44",
6
6
  "publishConfig": {
7
7
  "access": "public"
8
8
  },