≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Enable Alpha test
Posted by:
(you are not logged in)
Enter the missing letter in: "Internat?onal"
(you are not logged in)
Text:
[quote][b][/b] wrote: When you create your own material, you can specify the blend function yourself. The renderer::createMaterialType() function acccepts the following parameters: [code]createMaterialType(vertexShaderSource, fragmentShaderSource, blendenabled, blendsfactor, blenddfactor)[/code] For addititve blending for example, set the last three parametersto this: true, gl.ONE, gl.ONE_MINUS_SRC_COLOR (Where 'gl' is the webgl object, you can get it using renderer.getWebGL()) See the 'Custom materials and shaders' tutorial in the documentation for details.[/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