Skip to content

Instantly share code, notes, and snippets.

Avatar

Christian Williams xian

View GitHub Profile
View GlslBase.kt
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
View Glsl.kt
vertex shader:
#version 300 es
#ifdef GL_ES
precision mediump float;
#endif
in vec4 Vertex;
uniform mat4 viewProjMatrix;
@xian
xian / ConsoleFormatters.kt
Last active Oct 22, 2020
Chrome console formatters for Kotlin maps, sets, and lists
View ConsoleFormatters.kt
@file:Suppress("ObsoleteKotlinJsPackages")
package baaahs.util
import kotlin.browser.window
object ConsoleFormatters {
fun install() {
window.asDynamic().devtoolsFormatters = arrayOf(
map, set, list
You can’t perform that action at this time.