| Previous | 199869 Revisions | Next |
| r21479 Thursday 28th February, 2013 at 05:22:14 UTC by Ryan Holtz |
|---|
| (nw) Fixed sliders and phosphor offset |
| [hlsl] | phosphor.fx |
| [src/osd/windows] | d3dhlsl.c |
| r21478 | r21479 | |
|---|---|---|
| 716 | 716 | if (!d3dintf->post_fx_available) |
| 717 | 717 | return; |
| 718 | 718 | |
| 719 | g_slider_list = init_slider_list(); | |
| 720 | ||
| 721 | 719 | this->d3dintf = d3dintf; |
| 722 | 720 | this->window = window; |
| 723 | 721 | |
| r21478 | r21479 | |
| 991 | 989 | emu_file file(window->machine().options().art_path(), OPEN_FLAG_READ); |
| 992 | 990 | |
| 993 | 991 | render_load_png(shadow_bitmap, file, NULL, options->shadow_mask_texture); |
| 992 | ||
| 993 | g_slider_list = init_slider_list(); | |
| 994 | 994 | } |
| 995 | 995 | |
| 996 | 996 |
| r21478 | r21479 | |
|---|---|---|
| 80 | 80 | Output.Color = Input.Color; |
| 81 | 81 | |
| 82 | 82 | float2 InvTexSize = float2(1.0f / TextureWidth, 1.0f / TextureHeight); |
| 83 | Output.TexCoord = Input.TexCoord + float2( | |
| 83 | Output.TexCoord = Input.TexCoord + float2(0.5f, 0.5f) * InvTexSize; | |
| 84 | 84 | Output.PrevCoord = Output.TexCoord; |
| 85 | 85 | |
| 86 | 86 | return Output; |
| Previous | 199869 Revisions | Next |