AndrewRayCode / AndrewRayCode/ShaderFrog-Runtime

ShaderFrog specific uniforms do not have a default value when exporting as THREE.js

Aperta
#17 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
79
Fork
16
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

For example:

Exporting this shader: http://shaderfrog.com/view/35
Will result in:

``` json
{
"id": 35,
"name": "Oil or Fire",
"fragment": "...",
"vertex": "...",
"uniforms": {
"time": {
"type": "f",
"glslType": "float",
"description": "",
"textureId": null,
"runtime": {
"texture": null
}
}
},
.....
}
```

It would be good if it (`uniforms.time.value`) had a default value of `0.5` for example. So it would work straight away when imported to a THREE.js application.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.