From c613a5164518d7767414f576623dcfc5dc321d8b Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 3 Feb 2026 20:31:12 +0000 Subject: [PATCH] fix: use ior property instead of non-existent iorNode MeshPhysicalNodeMaterial has ior as a regular property, not a node property. Also replace specularColorNode with specularIntensity. https://claude.ai/code/session_01ChDF73v8WwcjKe7cWV82iB --- src/rendering/tsl/WaterMaterial.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/rendering/tsl/WaterMaterial.ts b/src/rendering/tsl/WaterMaterial.ts index efd9389c..8fbdeae0 100644 --- a/src/rendering/tsl/WaterMaterial.ts +++ b/src/rendering/tsl/WaterMaterial.ts @@ -280,10 +280,11 @@ export class TSLWaterMaterial { // IOR for physically-correct fresnel (water = 1.33) // This replaces manual fresnel calculation entirely - material.iorNode = float(WATER_IOR); + // Note: ior is a regular property, not a node property + material.ior = WATER_IOR; - // Optional: slight specular tint for ocean water - material.specularColorNode = vec3(0.95, 0.97, 1.0); + // Specular intensity for water reflections + material.specularIntensity = 1.0; // Environment map for reflections (if provided) if (config.envMap) {