kopia lustrzana https://github.com/jameshball/osci-render
13 wiersze
246 B
Plaintext
13 wiersze
246 B
Plaintext
![]() |
std::string texturedVertexShader = R"(
|
||
|
|
||
![]() |
attribute vec2 aPos;
|
||
|
varying vec2 vTexCoord;
|
||
|
uniform float uResizeForCanvas;
|
||
|
|
||
|
void main() {
|
||
|
gl_Position = vec4(aPos, 0.0, 1.0);
|
||
|
vTexCoord = (0.5 * aPos + 0.5) * uResizeForCanvas;
|
||
|
}
|
||
![]() |
|
||
|
)";
|