Skip to content

Instantly share code, notes, and snippets.

View randomPoison's full-sized avatar
💜

Nicole L randomPoison

💜
View GitHub Profile
@randomPoison
randomPoison / cool_shader.material
Created August 16, 2016 04:22
This is the gunship material file for the visual effect shown in this tweet: https://twitter.com/ehs_SmallTalk/status/765402776193171456. I'm storing it here in case I want to try to recreate this effect later.
property surface_diffuse: Texture2d;
property surface_color: Color;
property surface_specular: Color;
property surface_shininess: f32;
program frag {
// Calculate phong illumination.
vec4 ambient = vec4(0.0, 0.0, 0.0, 1.0);
vec4 diffuse = vec4(0.0, 0.0, 0.0, 1.0);
vec4 specular = vec4(0.0, 0.0, 0.0, 1.0);