≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
How send JS variable into HLSL fragmentShader part?
Posted by:
(you are not logged in)
Enter the missing letter in: "Internati?nal"
(you are not logged in)
Text:
[quote][b]hadoken[/b] wrote: According to the docs it's somewhat done with: [code]myShaderCallBack = function() { var abc = 0.5; ccbSetShaderConstant(2, abc', abc, abc, 0,abc); } [/code] How would I have to tell the fragmentShader part making use of my example variable abc for other params than float4, e.g for float alpha? [code]"float4 abc; \n" + [/code] e.g for float alpha? [code]"float alpha abc; \n" +[/code][/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact