├── .gitignore ├── LICENSE ├── README.md ├── docs ├── add_light_occluder.png ├── add_light_quad.png ├── add_lightsource.png ├── add_render_file_to_bootstrap.png ├── configure_light_occluder.png ├── configure_lightsource.png └── example.png ├── example ├── asset │ ├── background_brown.png │ ├── ball_blue_small_alt.png │ ├── ball_red_small_alt.png │ ├── block.tilesource │ ├── block_large.png │ ├── block_narrow.png │ ├── block_small.png │ ├── block_square.png │ └── images.atlas ├── ball.collection ├── ball.script ├── block_l.go ├── block_l.tilemap ├── block_large.go ├── block_narrow.go ├── block_small.go ├── example.collection ├── floor.tilemap ├── floor.tilesource └── light.go ├── game.project ├── input └── game.input_binding └── lights ├── lights.lua ├── lightsource.script ├── materials ├── light_occluder_sprite.material └── light_occluder_tile_map.material └── render ├── light_quad.fp ├── light_quad.go ├── light_quad.material ├── light_quad.vp ├── lights.render ├── lights.render_script ├── shadow_map.fp ├── shadow_map.material └── shadow_map.vp /.gitignore: -------------------------------------------------------------------------------- 1 | /.internal 2 | /build 3 | .DS_Store 4 | Thumbs.db -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/defold/sample-lights-and-shadows/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/defold/sample-lights-and-shadows/HEAD/README.md -------------------------------------------------------------------------------- /docs/add_light_occluder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/defold/sample-lights-and-shadows/HEAD/docs/add_light_occluder.png -------------------------------------------------------------------------------- /docs/add_light_quad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/defold/sample-lights-and-shadows/HEAD/docs/add_light_quad.png -------------------------------------------------------------------------------- /docs/add_lightsource.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/defold/sample-lights-and-shadows/HEAD/docs/add_lightsource.png -------------------------------------------------------------------------------- /docs/add_render_file_to_bootstrap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/defold/sample-lights-and-shadows/HEAD/docs/add_render_file_to_bootstrap.png -------------------------------------------------------------------------------- /docs/configure_light_occluder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/defold/sample-lights-and-shadows/HEAD/docs/configure_light_occluder.png -------------------------------------------------------------------------------- /docs/configure_lightsource.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/defold/sample-lights-and-shadows/HEAD/docs/configure_lightsource.png -------------------------------------------------------------------------------- /docs/example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/defold/sample-lights-and-shadows/HEAD/docs/example.png -------------------------------------------------------------------------------- /example/asset/background_brown.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/defold/sample-lights-and-shadows/HEAD/example/asset/background_brown.png -------------------------------------------------------------------------------- /example/asset/ball_blue_small_alt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/defold/sample-lights-and-shadows/HEAD/example/asset/ball_blue_small_alt.png -------------------------------------------------------------------------------- /example/asset/ball_red_small_alt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/defold/sample-lights-and-shadows/HEAD/example/asset/ball_red_small_alt.png -------------------------------------------------------------------------------- /example/asset/block.tilesource: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/defold/sample-lights-and-shadows/HEAD/example/asset/block.tilesource -------------------------------------------------------------------------------- /example/asset/block_large.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/defold/sample-lights-and-shadows/HEAD/example/asset/block_large.png -------------------------------------------------------------------------------- /example/asset/block_narrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/defold/sample-lights-and-shadows/HEAD/example/asset/block_narrow.png -------------------------------------------------------------------------------- /example/asset/block_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/defold/sample-lights-and-shadows/HEAD/example/asset/block_small.png -------------------------------------------------------------------------------- /example/asset/block_square.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/defold/sample-lights-and-shadows/HEAD/example/asset/block_square.png -------------------------------------------------------------------------------- /example/asset/images.atlas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/defold/sample-lights-and-shadows/HEAD/example/asset/images.atlas -------------------------------------------------------------------------------- /example/ball.collection: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/defold/sample-lights-and-shadows/HEAD/example/ball.collection -------------------------------------------------------------------------------- /example/ball.script: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/defold/sample-lights-and-shadows/HEAD/example/ball.script -------------------------------------------------------------------------------- /example/block_l.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/defold/sample-lights-and-shadows/HEAD/example/block_l.go -------------------------------------------------------------------------------- /example/block_l.tilemap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/defold/sample-lights-and-shadows/HEAD/example/block_l.tilemap -------------------------------------------------------------------------------- /example/block_large.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/defold/sample-lights-and-shadows/HEAD/example/block_large.go -------------------------------------------------------------------------------- /example/block_narrow.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/defold/sample-lights-and-shadows/HEAD/example/block_narrow.go -------------------------------------------------------------------------------- /example/block_small.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/defold/sample-lights-and-shadows/HEAD/example/block_small.go -------------------------------------------------------------------------------- /example/example.collection: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/defold/sample-lights-and-shadows/HEAD/example/example.collection -------------------------------------------------------------------------------- /example/floor.tilemap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/defold/sample-lights-and-shadows/HEAD/example/floor.tilemap -------------------------------------------------------------------------------- /example/floor.tilesource: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/defold/sample-lights-and-shadows/HEAD/example/floor.tilesource -------------------------------------------------------------------------------- /example/light.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/defold/sample-lights-and-shadows/HEAD/example/light.go -------------------------------------------------------------------------------- /game.project: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/defold/sample-lights-and-shadows/HEAD/game.project -------------------------------------------------------------------------------- /input/game.input_binding: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/defold/sample-lights-and-shadows/HEAD/input/game.input_binding -------------------------------------------------------------------------------- /lights/lights.lua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/defold/sample-lights-and-shadows/HEAD/lights/lights.lua -------------------------------------------------------------------------------- /lights/lightsource.script: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/defold/sample-lights-and-shadows/HEAD/lights/lightsource.script -------------------------------------------------------------------------------- /lights/materials/light_occluder_sprite.material: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/defold/sample-lights-and-shadows/HEAD/lights/materials/light_occluder_sprite.material -------------------------------------------------------------------------------- /lights/materials/light_occluder_tile_map.material: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/defold/sample-lights-and-shadows/HEAD/lights/materials/light_occluder_tile_map.material -------------------------------------------------------------------------------- /lights/render/light_quad.fp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/defold/sample-lights-and-shadows/HEAD/lights/render/light_quad.fp -------------------------------------------------------------------------------- /lights/render/light_quad.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/defold/sample-lights-and-shadows/HEAD/lights/render/light_quad.go -------------------------------------------------------------------------------- /lights/render/light_quad.material: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/defold/sample-lights-and-shadows/HEAD/lights/render/light_quad.material -------------------------------------------------------------------------------- /lights/render/light_quad.vp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/defold/sample-lights-and-shadows/HEAD/lights/render/light_quad.vp -------------------------------------------------------------------------------- /lights/render/lights.render: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/defold/sample-lights-and-shadows/HEAD/lights/render/lights.render -------------------------------------------------------------------------------- /lights/render/lights.render_script: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/defold/sample-lights-and-shadows/HEAD/lights/render/lights.render_script -------------------------------------------------------------------------------- /lights/render/shadow_map.fp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/defold/sample-lights-and-shadows/HEAD/lights/render/shadow_map.fp -------------------------------------------------------------------------------- /lights/render/shadow_map.material: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/defold/sample-lights-and-shadows/HEAD/lights/render/shadow_map.material -------------------------------------------------------------------------------- /lights/render/shadow_map.vp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/defold/sample-lights-and-shadows/HEAD/lights/render/shadow_map.vp --------------------------------------------------------------------------------