Subject | Hash | Author | Date (UTC) |
---|---|---|---|
Change rim lighting to specular | 937d99bee19b936fbf95927c5877a915c4128de1 | mse | 2021-11-18 03:49:41 |
Add sprite rim lighting | eb9ade21b6253e050d6962c273187f090c20ff2a | mse | 2021-11-18 01:29:22 |
Bump version to v0.6.4 | c2aeae76122cc95d03756a55a528b62609762820 | mse | 2021-11-17 11:38:37 |
Attempt to fix JSON serializing in locales with commas | beae8b63fb0deaaf0b66ef4f188df270120ebe1c | mse | 2021-11-17 11:19:18 |
Limit network settings to network-enabled builds | 8ccef75176b9059a45afa9ea251c313be7b7cfe0 | mse | 2021-11-17 09:20:56 |
Add /fps console command | 207ef051937c91f78dae3928ef004ee7aa7f2a7a | mse | 2021-11-16 21:33:32 |
Move userdata to game root directory | f9bff9bb941b714e7c0987327804175d852b470b | mse | 2021-11-16 02:55:04 |
Add --savehere flag and bump version to v0.6.3 | a59633113908903af57e4e1c62008fe154d4cbb7 | mse | 2021-11-16 02:12:25 |
Disable networking and remove dead code | aaa8bd8300f89099bace4ee1de374d05dff2c089 | mse | 2021-11-15 05:17:06 |
Update gamecontrollerdb | 828ce88dd2107d69b6332b9768f7c556473b8a24 | mse | 2021-11-14 00:29:26 |
Bump version to 0.6.2 | baa2215230b5deed37b69f4075bd3b3385dbb913 | mse | 2021-11-14 00:08:13 |
Fix controller menu selection | 3a1567ae279289d72058d6aa23d0c4eb147db2a8 | mse | 2021-11-13 23:00:12 |
Chinese translations for confec-select and name-your-confec | 6c5c9d0fadb17066af82d459d1d46868af0e9faa | mse | 2021-11-13 20:58:26 |
Parse newlines in CSL notifications | fc21ba1563a1c36ff20711c84b0dc3f3d7588646 | mse | 2021-11-13 05:12:11 |
Scriptable special items: GIVESPECIAL <id> <name> | 256a2581e75dc3762b098f8cae3259899f8c4a94 | mse | 2021-11-13 03:24:02 |
Improved particles, darker nights, work on GIVESPECIAL | e8e352e03fdffb8a8e57f94f99028bc1c6c03376 | mse | 2021-11-12 08:51:36 |
Fix caption padding bug | a49cd2397d2e1b98679828303116db858d146a93 | mse | 2021-11-08 23:35:07 |
Disable is_regular_file for Boost support | ebee78afad8b29f0332a4cf719c7c4d70e8c9ff8 | mse | 2021-11-08 22:41:42 |
Bump version to 0.6.1 | 9bdeecf9d39b75d12e44cb65bbb97a2e8277fcd4 | mse | 2021-11-08 21:34:25 |
Improve caption printing and start work on GIVESPECIAL | ec51488e4fd5552ae6d22db1b6eedfef7c2541b7 | mse | 2021-11-08 20:29:59 |
File | Lines added | Lines deleted |
---|---|---|
base/glsl/rimlit_sprite.frag | 10 | 5 |
confec.cpp | 1 | 1 |
File base/glsl/rimlit_sprite.frag changed (mode: 100644) (index 64c840a..8465fd8) | |||
... | ... | void main(){ | |
9 | 9 | vec4 texColor = texture( u_texture, v_UV ); | vec4 texColor = texture( u_texture, v_UV ); |
10 | 10 | if( texColor.a < 0.001 ) discard; | if( texColor.a < 0.001 ) discard; |
11 | 11 | vec2 tUV = v_UV + u_sun / textureSize( u_texture, 0 ); | vec2 tUV = v_UV + u_sun / textureSize( u_texture, 0 ); |
12 | if( tUV.x < 0.0 || tUV.y < 0.0 || tUV.x > 1.0 || tUV.y > 1.0 ){ | ||
13 | texColor.rgb *= 1.5; | ||
14 | }else{ | ||
15 | texColor.rgb *= | ||
16 | 1.0 + 0.5 * ( 1.0 - texture( u_texture, tUV ).a ); | ||
12 | if( texColor.a > 0.99 ){ | ||
13 | if( tUV.x < 0.0 || tUV.y < 0.0 || tUV.x > 1.0 || tUV.y > 1.0 ){ | ||
14 | //texColor.rgb *= 1.5; | ||
15 | texColor.rgb += u_fog.rgb * 0.2; | ||
16 | }else{ | ||
17 | //texColor.rgb *= | ||
18 | // 1.0 + 0.5 * ( 1.0 - texture( u_texture, tUV ).a ); | ||
19 | texColor.rgb += | ||
20 | u_fog.rgb * 0.2 * ( 1.0 - texture( u_texture, tUV ).a ); | ||
21 | } | ||
17 | 22 | } | } |
18 | 23 | fragColor = texColor * u_fog; | fragColor = texColor * u_fog; |
19 | 24 | } | } |
File confec.cpp changed (mode: 100644) (index be6012f..c5712aa) | |||
... | ... | void UpdateRimSun(){ | |
4093 | 4093 | auto sun = linalg::normalize( linalg::vec<float,2>( | auto sun = linalg::normalize( linalg::vec<float,2>( |
4094 | 4094 | std::sin( angle ), | std::sin( angle ), |
4095 | 4095 | std::cos( angle ) | std::cos( angle ) |
4096 | ) ) * 2.0f; | ||
4096 | ) ) * 1.414f; | ||
4097 | 4097 | if( sun.y > 0.0f ) sun *= 1.0f - std::min( sun.y / 0.2f, 1.0f ); | if( sun.y > 0.0f ) sun *= 1.0f - std::min( sun.y / 0.2f, 1.0f ); |
4098 | 4098 | glUniform2f( | glUniform2f( |
4099 | 4099 | glGetUniformLocation( rimlitSpritePipeline.programObject, "u_sun" ), | glGetUniformLocation( rimlitSpritePipeline.programObject, "u_sun" ), |