Fwd: Implementing a shader API

Jacky Guo jackyguo579 at gmail.com
Thu Mar 18 00:09:13 UTC 2021


---------- Forwarded message ---------
From: Jacky Guo <jackyguo579 at gmail.com>
Date: Wed, Mar 17, 2021 at 8:08 PM
Subject: Re: Implementing a shader API
To: Johan Vos <johan.vos at gluonhq.com>


I've cobbled together a prototype API. This is of course non-functional,
but I'd like feedback on it. I'm going to work backwards to figure out what
I need to add.

ShadedMaterial
<https://github.com/jgcodes2020/jfx/blob/8134662_Public_Shader_API/modules/javafx.graphics/src/main/java/javafx/scene/paint/ShadedMaterial.java>
Shader
<https://github.com/jgcodes2020/jfx/blob/8134662_Public_Shader_API/modules/javafx.graphics/src/main/java/javafx/scene/paint/Shader.java>

On Tue, Mar 16, 2021 at 4:40 AM Johan Vos <johan.vos at gluonhq.com> wrote:

>
>
> On Sat, Mar 13, 2021 at 3:58 AM superminerJG <jackyguo579 at gmail.com>
> wrote:
>
>> Hi everyone.
>>
> [...]
>
>> Questions:
>>
>>    - Can high school students sign the OCA? (I saw the job title field on
>>    the form and wasn't so sure I was legally allowed to sign it)
>>
>
> If the answer to this was "NO", it would mean we're doing something
> terribly wrong that we need to fix. I have no immediate knowledge on how to
> do this, hence Nir's suggestion about asking on adoption-discuss would be
> good.
>
>
>>    - When I  implement the shader API, should it use some kind of GLSL
>>    mapping, or should I try to extend JSL to work in 3D?
>>
>
> The latter sounds the least intrusive approach.
> Michael and Nir have interesting comments in their replies. It's not a
> simple thing.
>
>
>>    - Should I have sent this email to the openjfx-dev mailing list and not
>>    this one?
>>
>
> At this moment, I think openjfx-discuss is the best mailing list. There
> are a number of conceptual things that need to be sorted first, and it
> would be good to keep the discussion alive on this list. Once there is
> something tangible, e.g. a prototype, we can move the discussion to
> openjfx-dev.
>
> Thanks for the ideas!
>
> - Johan
>


More information about the openjfx-dev mailing list