Logo
Explore Help
Register Sign In
griefith/test
1
0
Fork 0
You've already forked test
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
main
test/scripts/templates_osl/basic_shader.osl

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
248 B
Plaintext
Raw Permalink Normal View History

OSL: add basic OSL shader template Add a basic OSL shader that shows how inputs and outputs work and do some simple math with them. This template is a happy medium between the templates we already ship, empty_shader is a little too bare, and the other templates are a little "too much" and you end up having to delete a whole bunch of stuff. a great starting point for some experimentation! Differential Revision: https://developer.blender.org/D9933 reviewed by: brecht
2021-03-26 10:27:31 -06:00
shader basic_shader(
float in_float = 1.0,
color in_color = color(1.0, 1.0, 1.0),
output float out_float = 0.0,
output color out_color = color(0.0, 0.0, 0.0)
)
{
out_float = in_float * 2.0;
out_color = in_color * 2.0;
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 658ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API