bahmutov / bahmutov/javascript-journey

Add GLSL Example

Open
#19 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
332
Forks
26
PR merge metrics
No merged PRs in 30d

Description

Add missing GLSL example

// in shader
```glsl
uniform vec4 a_vec4 = vec4(1, 2, 3, 4);
uniform vec4 b_vec4 = a * 2.0;
```

// in JavaScript at init time
```javascript
var someVec2Loc = gl.getUniformLocation(someProgram, "b_vec4");
```

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.