This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package baaahs.glsl | |
import baaahs.* | |
import baaahs.geom.Vector2F | |
import baaahs.shows.GlslShow | |
import org.joml.Matrix4f | |
import org.lwjgl.BufferUtils | |
import org.lwjgl.glfw.GLFW.* | |
import org.lwjgl.glfw.GLFWErrorCallback | |
import org.lwjgl.glfw.GLFWFramebufferSizeCallback |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vertex shader: | |
#version 300 es | |
#ifdef GL_ES | |
precision mediump float; | |
#endif | |
in vec4 Vertex; | |
uniform mat4 viewProjMatrix; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@file:Suppress("ObsoleteKotlinJsPackages") | |
package baaahs.util | |
import kotlin.browser.window | |
object ConsoleFormatters { | |
fun install() { | |
window.asDynamic().devtoolsFormatters = arrayOf( | |
map, set, list |
OlderNewer