Skip to content
This repository was archived by the owner on Apr 26, 2023. It is now read-only.

Commit ce8abe0

Browse files
committed
README
1 parent 1fb1a68 commit ce8abe0

File tree

14 files changed

+112
-423
lines changed

14 files changed

+112
-423
lines changed

README.md

Lines changed: 73 additions & 398 deletions
Large diffs are not rendered by default.

glsl/deferred/tile.frag.glsl

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,13 @@ vec3 lightTerms(vec3 normal, vec3 pos, vec3 lightPos, float lightRad) {
5353
float maxDepth(float depth, vec2 v_uv) {
5454
float u = v_uv.x;
5555
float v = v_uv.y;
56-
float d1 = texture2D(u_depth, vec2(u+(1./800.), v)).x;
57-
float d2 = texture2D(u_depth, vec2(u-(1./800.), v)).x;
58-
float d3 = texture2D(u_depth, vec2(u, (v+1./600.))).x;
59-
float d4 = texture2D(u_depth, vec2(u, (v-1./600.))).x;
56+
float toon_width = 2.0;
57+
float c_img_height = 600.0;
58+
float c_img_width = 800.0;
59+
float d1 = texture2D(u_depth, vec2(u+(toon_width/c_img_width), v)).x;
60+
float d2 = texture2D(u_depth, vec2(u-(toon_width/c_img_width), v)).x;
61+
float d3 = texture2D(u_depth, vec2(u, (v+toon_width/c_img_height))).x;
62+
float d4 = texture2D(u_depth, vec2(u, (v-toon_width/c_img_height))).x;
6063
return max(
6164
max(
6265
max(

img/chart_opts.png

14 KB
Loading

img/chart_tile_size.png

14 KB
Loading

img/chart_toon.png

13 KB
Loading

img/normal.png

995 KB
Loading

img/thumb.png

968 KB
Loading

img/tiled_textures.png

185 KB
Loading

img/toon.png

967 KB
Loading

img/zoomed-325-lights.png

553 KB
Loading

0 commit comments

Comments
 (0)