Revert "refactor: define _IS_CHROMATIC_"
This reverts commit a35f0d43e4
.
This commit is contained in:
parent
a35f0d43e4
commit
ed3c137543
5 changed files with 2 additions and 7 deletions
|
@ -4,6 +4,7 @@
|
|||
|
||||
<script lang="ts" setup>
|
||||
import { onMounted, onUnmounted, shallowRef } from 'vue';
|
||||
import isChromatic from 'chromatic/isChromatic';
|
||||
|
||||
const canvasEl = shallowRef<HTMLCanvasElement>();
|
||||
|
||||
|
@ -203,7 +204,7 @@ onMounted(() => {
|
|||
const vertices = [1.0, 1.0, -1.0, 1.0, 1.0, -1.0, -1.0, -1.0];
|
||||
gl.bufferData(gl.ARRAY_BUFFER, new Float32Array(vertices), gl.DYNAMIC_DRAW);
|
||||
|
||||
if (_IS_CHROMATIC_) {
|
||||
if (isChromatic()) {
|
||||
gl!.uniform1f(u_time, 0);
|
||||
gl!.drawArrays(gl!.TRIANGLE_STRIP, 0, 4);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue