Xrayshader widget

Xrayshader widget

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
Floris
Posts: 611
Joined: 04 Jan 2011, 20:00

Xrayshader widget

Post by Floris »

I used to like the xrayshader for that extra shiny polish, but it was too heavy on the cpu.

- speed optimization: 1.3x - 2x
- effect diminishes and gets disabled when having a low average fps
- get more intense with high camera distance
- intensity is a little more subtle in comparison with the old xrayshader


I don't know how well this works on ATI/AMD gpu's, since the old widget might have been connected with the 'green-screen' bug. But I don't know for sure. Could anyone elaborate on this old issue?
Attachments
gui_xray_shader.lua
22 february 2015
(8.07 KiB) Downloaded 17 times
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10450
Joined: 24 Jan 2006, 21:12

Re: Xrayshader widget

Post by PicassoCT »

will try it
User avatar
zoggop
Posts: 289
Joined: 07 Sep 2010, 18:47

Re: Xrayshader widget

Post by zoggop »

Code: Select all

[f=0000000] Loading:  LuaUI\Widgets\gui_xray_shader.lua
[f=0000000] ERROR: 0:20: 'assign' :  cannot convert from 'Position 4-component vector of float' to 'varying 3-component vector of float'


[f=0000000] Xray shader compilation failed.
[f=0000000] false
[f=0000000] Error in Initialize(): [string "LuaUI\Widgets\gui_xray_shader.lua"]:162: bad argument #1 to 'GetUniformLocation' (number expected, got nil)
But then I'm using an Intel integrated, so this probably isn't the best test system.
User avatar
Floris
Posts: 611
Joined: 04 Jan 2011, 20:00

Re: Xrayshader widget

Post by Floris »

indeed... indeed.


must note that the widget has problems with disabling on lowfps. (my calcs are just wrong)
Post Reply

Return to “Lua Scripts”