MAMEWorld >> Programming
View all threads Index   Threaded Mode Threaded  

Pages: 1

CyberAxe
Nerd
Reged: 04/10/04
Posts: 285
Loc: Scotland
Send PM


GLSL Shader Development
#343790 - 08/10/15 04:11 PM


Does anyone know where I can find documentation for MAME GLSL Shader Development?

I've tried looking through some GLSL Shaders i managed to find for MAME to use as a starting point but having no prior shader experience I'm not sure how it works.

Is the Main(), applied once per pixel? and is it possible to itterate through the source texture in native RGB format before its converted to floats?

Any info would be appreciated.

Edit
---

I've been playing around with it for a few days now and i've found http://git.redump.net/mess/plain/src/osd/sdl/shader/docs/PluggableShader.txt

which seems to partially be applicable

however the differences from the official mame implementation seem to be that mame-bmps are screen stretched already? as i can apply output based on the screen position and it's pixel perfect to the screen

and it seems to ignore the lut's and only uses the rgb32

I dont care about the lut support, but the fact that i cant work at the original mame-bmp res os rather inefficient

This could be due to mame settings as there's no documentation i can find for the official mame still, on the subject

Edited by CyberAxe (08/13/15 12:38 PM)






uman
MAME Fan
Reged: 04/15/12
Posts: 455
Send PM


Re: GLSL Shader Development new [Re: CyberAxe]
#347024 - 11/15/15 06:16 PM


you can look here: http://forums.bannister.org/ubbthreads.php?ubb=showflat&Number=100988#Post100988

i think it solves many of your questions.



MooglyGuy
Renegade MAME Dev
Reged: 09/01/05
Posts: 2261
Send PM


Re: GLSL Shader Development new [Re: uman]
#347031 - 11/15/15 10:10 PM


> you can look here:
> http://forums.bannister.org/ubbthreads.php?ubb=showflat&Number=100988#Post100988
>
> i think it solves many of your questions.

I also think that if he doesn't even understand the concept of main() in a GLSL shader, he should be spending time reading basic GLSL tutorials, not jumping neck-deep into MAME.



jonnytracker
MAME Fan
Reged: 11/17/15
Posts: 4
Send PM


Re: GLSL Shader Development new [Re: MooglyGuy]
#347119 - 11/17/15 05:51 PM


hi i updgrade from hlsl to glsl in mame , i install crt geom now i want to edit the settings , how do i do that ? there is no options in glsl like hlsl to edit scanline settings color and gamma



Firehawke
Manual Meister
Reged: 08/12/06
Posts: 665
Send PM


Re: GLSL Shader Development new [Re: jonnytracker]
#347122 - 11/17/15 07:29 PM


You're asking in the wrong place. Try EmuChat. This area is specific to programming, and won't get seen by anyone who can answer your question.



---
Try checking the MAME manual at http://docs.mamedev.org


Pages: 1

MAMEWorld >> Programming
View all threads Index   Threaded Mode Threaded  

Extra information Permissions
Moderator:  Pi 
0 registered and 18 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 2766