mirror of
https://github.com/dyuri/repa-shader.git
synced 2025-12-16 11:14:25 +00:00
24 lines
514 B
HTML
24 lines
514 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title><repa-shader> demo</title>
|
|
<script type="module" src="../src/repa-shader.js"></script>
|
|
</head>
|
|
<body>
|
|
<repa-shader>
|
|
<script type="x-shader/x-vertex">
|
|
attribute vec3 position;
|
|
void main() {
|
|
gl_Position = vec4(position, 1.0);
|
|
}
|
|
</script>
|
|
<script type="x-shader/x-fragment">
|
|
void main() {
|
|
outColor = vec4(1.0, 0.0, 0.0, 1.0);
|
|
}
|
|
</script>
|
|
</repa-shader>
|
|
</body>
|
|
</html>
|