I am trying to use an cubeMap in TSL. By now I am trying like this:
this.materialParams = {
cubeTex: this.textureCube,
}
const customShaderNode = tslFn( ( input ) => {
const rayVec = vec3(0.0,0.0,0.0).toVar();
const col = vec4( cubeTexture( input.cubeTex, rayVec ) ).toVar();
});
let material = new MeshBasicNodeMaterial();
material.colorNode = customShaderNode( this.materialParams );
…but “col” does not get the cubeTexture´s rgb-values but console throws an error. Am I doing things wrong in how to access the cubeMap via TSL / uniforms?