shader-park / shader-park-core

A JavaScript library for creating real-time 2D and 3D shaders. JS -> Shader. https://shaderpark.com/ https://twitter.com/shaderpark

Home Page:https://shaderpark.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

getSpace returns the current instance of the space. It should return a copy

torinmb opened this issue · comments

right now you can do this:

let s = getSpace();
s.x = sin(s.x);
torus(0.4, 0.2);

This modifies the space, but you shouldn't be able to unless you use setSpace, or displace.