Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / jGFX Plugin. Problem with shader set Integer/float assignment operations

Author
Message
Chris Tate
DBPro Master
15
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 13th Sep 2020 19:46
Revenant Chaos a valued member of the community has developed a faster alternative for controlling shader values from DBPro, amongst other great development libraries. This shader library was later integrated into the jGFX plugin: https://forum.thegamecreators.com/thread/220206

This issue relates to a problem assigning values.

When using the Shader_SetValue command, a value can be assigned to any shader parameter, and certainly works. However, the Shader_SetFloat and Shader_SetInt equivalents serving to provide specific datatypes are not assigning the correct value. For example, if set to assign the value of 0 (zero); the shader received a value of 96026568; contrary to what occurs as expected with the Shader_SetValue command.

I will try to get in touch with the developer of the plugin, and will provide a solution here if found, otherwise any help will be greatly appreciated.

Attached is an example project, with an attempt at writing the value of 5555 to a parameter called Egg.

jGFX and Matrix1 utilities are required for the project to compile as is .

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-03-28 10:25:16
Your offset time is: 2024-03-28 10:25:16