Skip to content

Commit 5ddcdba

Browse files
author
Tiffany Bennett
committed
Initial commit
0 parents  commit 5ddcdba

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+19866
-0
lines changed

.gitmodules

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[submodule "IntenseLogic"]
2+
path = IntenseLogic
3+
url = https://github.com/TheCodeLab/IntenseLogic.git
4+
[submodule "tiffgl"]
5+
path = tiffgl
6+
url = https://github.com/tiffany352/tiffgl.git

IntenseLogic

Submodule IntenseLogic added at de9f93b

README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# IntenseLogic Demos
2+
3+
This repository contains several demonstrations of what you can do
4+
with [IntenseLogic](https://github.com/TheCodeLab/IntenseLogic).
5+
6+
- Bouncing Lights: A heightmap with several bouncing spheres, every
7+
single one is a point light source. The physics is performed by
8+
Bullet Physics.
9+
- Shadertoy: A clone of the functionality offered by
10+
[shadertoy.com](http://shadertoy.com/). Many of the uniforms are
11+
provided. When you save a file, it instantly detects this and
12+
reloads the shader while it's running. Detecting shader reloads is
13+
performed through libuv.
14+
- Lighting: An attempt at demonstrating the physically-based rendering
15+
pipeline in IL.
16+
17+
# Dependencies
18+
19+
- Bullet
20+
- SDL 2
21+
- libuv
22+
- libepoxy
23+
- libpng
24+
- tup
25+
26+
# Building
27+
28+
Just run `tup`.
29+
30+
# Running
31+
32+
The only one of these which really has command line options is
33+
shadertoy, which is invoked like:
34+
35+
shadertoy -f=some_shader.frag
36+
37+
This will load any shaders in the shadertoys/ directory, which is
38+
where you should put any new shaders you make.
39+
40+
You don't need to restart shadertoy if you edit your shader, it will
41+
reload automatically.

Tupfile.ini

Whitespace-only changes.

Tuprules.tup

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
.gitignore
2+
3+
ifdef CXX
4+
CXX = @(CXX)
5+
else
6+
CXX = clang++
7+
endif
8+
9+
ifdef CC
10+
CC = @(CC)
11+
else
12+
CC = clang
13+
endif
14+
15+
ifdef LD
16+
LD = @(LD)
17+
else
18+
LD = $(CXX)
19+
endif
20+
21+
ifdef AR
22+
AR = @(AR)
23+
else
24+
AR = ar rcs
25+
endif
26+
27+
ifdef IL_SHADER_PATH
28+
IL_SHADER_PATH = @(IL_SHADER_PATH)
29+
else
30+
IL_SHADER_PATH = IntenseLogic/shaders
31+
endif
32+
33+
ifdef LOADER
34+
LOADER = @(LOADER)
35+
else
36+
LOADER = EPOXY
37+
endif
38+
39+
TOP = $(TUP_CWD)
40+
41+
CFLAGS = -std=gnu99 @(CFLAGS)
42+
CXXFLAGS = -std=c++14 @(CXXFLAGS)
43+
CCFLAGS += -I$(TOP)/src -I$(TOP)/IntenseLogic/src -I$(TOP)/tiffgl/src -I. -DTGL_USE_EPOXY \
44+
`pkg-config --cflags sdl2 bullet epoxy libpng libuv` @(DEMO_CCFLAGS)
45+
LDFLAGS += -pthread -ldemo -lilgraphics -ltgl -lilasset -lilmath -lilutil \
46+
-L$(TOP) -L$(TOP)/IntenseLogic -L$(TOP)/tiffgl \
47+
`pkg-config --libs sdl2 bullet epoxy libpng libuv` @(DEMO_LDFLAGS)
48+
49+
!cxx = |> ^o C++ %f^ $(CXX) $(CCFLAGS) $(CXXFLAGS) -c %f -o %o |> %B.o | $(TOP)/<objs>
50+
!cc = |> ^o C %f^ $(CC) $(CCFLAGS) $(CFLAGS) -c %f -o %o |> %B.o | $(TOP)/<objs>
51+
!ar = |> ^o AR %o^ $(AR) %o %f |>
52+
!ld = | $(TOP)/<libs> $(TOP)/IntenseLogic/<libs> $(TOP)/tiffgl/libtgl.a $(TOP)/<objs> |> ^o LINK %o^ $(LD) %f $(LDFLAGS) $(LOCAL_LDFLAGS) -o %o |>

assets/arena-heightmap.png

112 KB
Loading

assets/comp1_n.png

36.2 KB
Loading

assets/comp1_s.png

29.7 KB
Loading

assets/comp1a.png

61.8 KB
Loading

assets/comp1a_g.png

15.8 KB
Loading

assets/down.png

1.66 MB
Loading

assets/east.png

1.54 MB
Loading

assets/georgia.ttf

140 KB
Binary file not shown.

assets/north.png

1.72 MB
Loading

assets/smooth-heightmap.png

4.16 KB
Loading

assets/south.png

1.75 MB
Loading

assets/sphere.mtl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Blender MTL File: 'None'
2+
# Material Count: 1
3+
4+
newmtl None
5+
Ns 0
6+
Ka 0.000000 0.000000 0.000000
7+
Kd 0.8 0.8 0.8
8+
Ks 0.8 0.8 0.8
9+
d 1
10+
illum 2

0 commit comments

Comments
 (0)