Daily Creative Coding

元「30 min. Processing」。毎日、Creative Codingします。

2017-05-14から1日間の記事一覧

【GLSL】レイマーチングでハードシャドウ

See the Pen object with hard shadow by aadebdeb (@aadebdeb) on CodePen. #define PI 3.14159265359 #define TWO_PI PI * 2.0 #define HALF_PI PI / 2.0 precision mediump float; uniform float u_time; uniform vec2 u_mouse; uniform vec2 u_resolutio…