Skip to content

Commit 6fd23ca

Browse files
committed
v0.3.5
1 parent b93b2b9 commit 6fd23ca

5 files changed

Lines changed: 30 additions & 28 deletions

File tree

drunkshaders/changelog.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
(0.3.5)
2+
Slightly improved formula for interpixel outline curve approximation.
3+
Added macOS build of glslopt.
4+
15
(0.3.4)
26
MAJOR readme update.
37
Fixed default outlines when no component is chosen.

drunkshaders/drunkshaders.tp2

Lines changed: 19 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
BACKUP ~drunkshaders/backup~
22

33
AUTHOR ~drunktiefling~
4-
VERSION ~0.3.4~
4+
VERSION ~0.3.5~
55
README ~drunkshaders/readme.txt~
66

77

@@ -380,27 +380,23 @@ END
380380
BEGIN ~Process shaders with GLSL Optimizer [WARINIG: manual editing won't be possible after this step]~ DESIGNATED 9005
381381
SUBCOMPONENT ~GLSL Optimization~
382382
REQUIRE_COMPONENT ~drunkshaders.tp2~ 1000 ~This requires the main component.~
383-
ACTION_IF NOT (~%WEIDU_OS%~ STRING_EQUAL_CASE ~osx~) BEGIN
384-
LAF ~GET_TOOL_BINARY~ STR_VAR tool_name = ~glslopt~ RET tool_binary END
385-
ACTION_FOR_EACH shader IN ~override/fpfont.glsl~ ~override/fpdraw.glsl~ ~override/fptone.glsl~ ~override/fpseam.glsl~ ~override/fpsprite.glsl~ ~override/fpselect.glsl~ ~override/fpyuv.glsl~ ~override/fpyuvgry.glsl~ BEGIN
386-
DELETE ~%MOD_FOLDER%/weidu_external/workspace/glslopt_out/%shader%~
387-
COPY_EXISTING ~%shader%~ ~%shader%~
388-
WRITE_ASCII 0 ~#version 130 /* ~
389-
BUT_ONLY_IF_IT_CHANGES
390-
LAF EXECUTE_TOOL
391-
STR_VAR
392-
tool_binary = EVAL ~%tool_binary%~
393-
arg_0 = EVAL ~-1~
394-
arg_1 = EVAL ~-f~
395-
arg_2 = EVAL ~%shader%~
396-
arg_3 = EVAL ~%MOD_FOLDER%/weidu_external/workspace/glslopt_out/%shader%~
397-
END
398-
COPY_EXISTING ~%MOD_FOLDER%/weidu_external/workspace/glslopt_out/%shader%~ ~%shader%~
399-
REPLACE_TEXTUALLY ~#version 130~ ~~
400-
REPLACE_TEXTUALLY ~ / 0.1)~ ~ * 10.0)~
401-
REPLACE_TEXTUALLY ~ / 0.002)~ ~ * 500.0)~
402-
BUT_ONLY_IF_IT_CHANGES
383+
LAF ~GET_TOOL_BINARY~ STR_VAR tool_name = ~glslopt~ RET tool_binary END
384+
ACTION_FOR_EACH shader IN ~override/fpfont.glsl~ ~override/fpdraw.glsl~ ~override/fptone.glsl~ ~override/fpseam.glsl~ ~override/fpsprite.glsl~ ~override/fpselect.glsl~ ~override/fpyuv.glsl~ ~override/fpyuvgry.glsl~ BEGIN
385+
DELETE ~%MOD_FOLDER%/weidu_external/workspace/glslopt_out/%shader%~
386+
COPY_EXISTING ~%shader%~ ~%shader%~
387+
WRITE_ASCII 0 ~#version 130 /* ~
388+
BUT_ONLY_IF_IT_CHANGES
389+
LAF EXECUTE_TOOL
390+
STR_VAR
391+
tool_binary = EVAL ~%tool_binary%~
392+
arg_0 = EVAL ~-1~
393+
arg_1 = EVAL ~-f~
394+
arg_2 = EVAL ~%shader%~
395+
arg_3 = EVAL ~%MOD_FOLDER%/weidu_external/workspace/glslopt_out/%shader%~
403396
END
404-
END ELSE BEGIN
405-
PRINT ~Platform not supported. Doing nothing.~
397+
COPY_EXISTING ~%MOD_FOLDER%/weidu_external/workspace/glslopt_out/%shader%~ ~%shader%~
398+
REPLACE_TEXTUALLY ~#version 130~ ~~
399+
REPLACE_TEXTUALLY ~ / 0.1)~ ~ * 10.0)~
400+
REPLACE_TEXTUALLY ~ / 0.002)~ ~ * 500.0)~
401+
BUT_ONLY_IF_IT_CHANGES
406402
END

drunkshaders/glsl-parts/functions-game.glsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ mediump vec2 uhOutlineData(in int radius, in ivec2 uhPosUb, in mediump vec2 uhPo
326326
{
327327
continue;
328328
}
329-
mediump float lineA0 = a00 - 0.0625;
329+
mediump float lineA0 = (a00 * 3 + a01 + a10 - a11) * 0.25 - 0.0625;
330330
mediump float lineAX = (a01 + a11 - a00 - a10) * 0.5;
331331
mediump float lineBX = (a10 + a11 - a00 - a01) * 0.5;
332332
mediump vec2 segEnds[2];

drunkshaders/readme.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
12
# drunktiefling's shaders
23

3-
Readme last updated at version: *0.3.4*.
4+
Readme last updated at version: *0.3.5*.
45

56
This mod aims to use more consistent color operations, sharpening
67
and alternative scaling filters via shader files introduced in BG(2)EE.
@@ -108,7 +109,7 @@ Then extract it in the game installation directory.
108109

109110
Current versions are shipped with WeiDU for all supported platforms.
110111
For example, on Windows you would have to execute `setup-drunkshaders.exe`
111-
file and answer a few questions. Proper steps for Linux and Mac OS X are
112+
file and answer a few questions. Proper steps for Linux and macOS are
112113
analogous, taken that files you might want to run don't have `.exe`
113114
at the end of the name.
114115

@@ -358,8 +359,9 @@ of conditional statements from the code of all shaders without outlines (some
358359
gometry code related to them is an exception from that rule), which is already
359360
an indication that they sould run faster.
360361

361-
At the moment, there is no Mac OS X build, so this component works only
362-
on Windows and Linux (either x86 or x86_64 for either platform).
362+
At the moment, the included macOS build is based on the
363+
[original branch](https://github.com/aras-p/glsl-optimizer) of GLSL optimizer,
364+
because of missing symbols from the more recent code.
363365

364366
1. Process shaders with GLSL Optimizer
365367
[WARINIG: manual editing won't be possible after this step]
1.41 MB
Binary file not shown.

0 commit comments

Comments
 (0)