Revision: 45548
          http://brlcad.svn.sourceforge.net/brlcad/?rev=45548&view=rev
Author:   kunigami
Date:     2011-07-19 23:24:24 +0000 (Tue, 19 Jul 2011)

Log Message:
-----------
texture shader. this one was pretty straightforward since there's already an 
implemented internal function

Modified Paths:
--------------
    brlcad/trunk/src/other/osl/shaders/converter.osl

Added Paths:
-----------
    brlcad/trunk/src/other/osl/shaders/sh_texture.osl

Modified: brlcad/trunk/src/other/osl/shaders/converter.osl
===================================================================
--- brlcad/trunk/src/other/osl/shaders/converter.osl    2011-07-19 22:03:47 UTC 
(rev 45547)
+++ brlcad/trunk/src/other/osl/shaders/converter.osl    2011-07-19 23:24:24 UTC 
(rev 45548)
@@ -1,4 +1,5 @@
 surface converter 
+        [[ string description = "Convert a closure color to Ci" ]]
 (
         closure color Cin = diffuse(N)
 )

Added: brlcad/trunk/src/other/osl/shaders/sh_texture.osl
===================================================================
--- brlcad/trunk/src/other/osl/shaders/sh_texture.osl                           
(rev 0)
+++ brlcad/trunk/src/other/osl/shaders/sh_texture.osl   2011-07-19 23:24:24 UTC 
(rev 45548)
@@ -0,0 +1,7 @@
+surface sh_texture (
+        string filename = "",
+        output closure color Cout = diffuse(N)
+        ) {
+        color ctmp = texture(filename, u, v);
+        Cout = ctmp * diffuse(N);
+}
\ No newline at end of file


Property changes on: brlcad/trunk/src/other/osl/shaders/sh_texture.osl
___________________________________________________________________
Added: svn:mime-type
   + text/plain
Added: svn:eol-style
   + native


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to