kopia lustrzana https://github.com/jameshball/osci-render
Add TODO
rodzic
d6436aa3fa
commit
12e4ffa509
|
@ -46,6 +46,9 @@ Vector2 PerspectiveEffect::apply(int index, Vector2 input, const std::vector<dou
|
||||||
auto z = 0.0;
|
auto z = 0.0;
|
||||||
|
|
||||||
{
|
{
|
||||||
|
// TODO: Instead of evaluating the script every time, we could evaluate it
|
||||||
|
// once at the start for all values of x and y and then interpolate between
|
||||||
|
// the results.
|
||||||
juce::SpinLock::ScopedLockType lock(codeLock);
|
juce::SpinLock::ScopedLockType lock(codeLock);
|
||||||
if (!defaultScript) {
|
if (!defaultScript) {
|
||||||
parser->setVariable("x", x);
|
parser->setVariable("x", x);
|
||||||
|
|
Ładowanie…
Reference in New Issue