1
0
Fork 0

Provide some reasonable default textures

Author: Tim Moore <timoore@redhat.com>
This commit is contained in:
timoore 2009-11-17 06:23:12 +00:00
parent 6445dc6cce
commit 1e5f8c2aee
2 changed files with 22 additions and 9 deletions

View file

@ -2,6 +2,9 @@
<PropertyList>
<name>Effects/chrome</name>
<parameters>
<texture n ="0">
<type>transparent</type>
</texture>
<chrome-light><use>/rendering/scene/chrome-light</use></chrome-light>
</parameters>
<technique n="11">
@ -17,6 +20,7 @@
<rendering-hint><use>rendering-hint</use></rendering-hint>
<texture-unit>
<unit>0</unit>
<type><use>texture[0]/type</use></type>
<image><use>texture[0]/image</use></image>
<filter><use>texture[0]/filter</use></filter>
<wrap-s><use>texture[0]/wrap-s</use></wrap-s>

View file

@ -1,6 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<PropertyList>
<name>Effects/model-default</name>
<parameters>
<texture n ="0">
<type>white</type>
</texture>
</parameters>
<technique n="10">
<predicate>
<and>
@ -39,7 +44,11 @@
<cull-face><use>cull-face</use></cull-face>
<rendering-hint><use>rendering-hint</use></rendering-hint>
<texture-unit>
<!-- The texture unit is always active because the shaders expect
that. -->
<unit>0</unit>
<!-- If there is a texture, the type in the derived effect
will be "2d". -->
<type><use>texture[0]/type</use></type>
<image><use>texture[0]/image</use></image>
<filter><use>texture[0]/filter</use></filter>