summaryrefslogtreecommitdiffhomepage
path: root/osl.html.markdown
diff options
context:
space:
mode:
authorBoris Verkhovskiy <boris.verk@gmail.com>2024-04-06 08:36:26 -0700
committerGitHub <noreply@github.com>2024-04-06 08:36:26 -0700
commit111ff839f3a9b96fecd1d186340bf57e0f27e177 (patch)
tree30d433ba19ec49808cc0f0de8a161835ad5f29c9 /osl.html.markdown
parent9fa4b5af80f1cd7fe2469c198d02a21e4f8884a1 (diff)
parent3e687f1a8ccb1cd0d52a966005551d528ca141df (diff)
Merge pull request #4881 from verhovsky/trailing-newlines
Remove leading and trailing empty lines in code blocks
Diffstat (limited to 'osl.html.markdown')
-rw-r--r--osl.html.markdown4
1 files changed, 1 insertions, 3 deletions
diff --git a/osl.html.markdown b/osl.html.markdown
index 1fe010ec..fd4fc7e9 100644
--- a/osl.html.markdown
+++ b/osl.html.markdown
@@ -10,8 +10,6 @@ OSL (Open Shading Language) is a programming language designed by Sony for Arnol
[Read more here.](https://raw.githubusercontent.com/imageworks/OpenShadingLanguage/master/src/doc/osl-languagespec.pdf)
```c
-
-
// Single-line comments start with //
/* Multi line comments are preserved. */
@@ -741,8 +739,8 @@ for (int i = 0; i < 5; i += 1) {
point pos = point(0, 0, 0); // Starting position of the ray
vector dir = vector(0, 0, 1); // Direction of the ray
int hit = trace(pos, dir); // returns 1 if it hits, else 0
-
```
+
### Further reading
* [Blender Docs for OSL](https://docs.blender.org/manual/en/latest/render/shader_nodes/osl.html)