AndrewRayCode / AndrewRayCode/ShaderFrog-Runtime

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

Open
#17 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
79
Forks
16
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.