vertex shaders and meshes

Forum for plugin, effect and behavior programmers. Please use the Help & Support forum for help using Construct.

Post » Sun Jul 19, 2009 12:45 pm

I've a long way to go before I'd even be asking about any usage in particular
but, I see :
[code:3f496yql]VertexShader = null;[/code:3f496yql]
at the bottom of the .fx files
and I was curious if it's possible to use vertex shaders in construct as effects
and whether or not they would operate on the individual vertexes of meshes
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Sun Jul 19, 2009 12:51 pm

There's no way to use vertex shaders yet - before meshes, there was no reason to (what can you usefully do with four vertices?). However, you can do anything a vertex shader could via events, and it probably won't be a bottleneck unless you're doing really insane stuff.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Sun Jul 19, 2009 1:14 pm

yet?
does that mean it's planned for construct 1?
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Sun Jul 19, 2009 1:20 pm

Well, maybe, but as I said it can all be done via events on meshes, so it's potentially a lot of effort for something that can already be done another way... you won't get a performance boost the same as with pixel shaders, vertex shaders are fairly light on CPU when done in software.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Sun Jul 19, 2009 2:31 pm

I see.
thanks for the info ash
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461


Return to Construct engineering

Who is online

Users browsing this forum: No registered users and 0 guests