<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>15253</bug_id>
          
          <creation_ts>2011-12-17 05:52:06 +0000</creation_ts>
          <short_desc>Custom Filters / CSS Shaders: add normal matrix uniform to enable lighting</short_desc>
          <delta_ts>2014-11-03 21:28:16 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSS</product>
          <component>Filter Effects</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Fabrice Robinet">cmg473</reporter>
          <assigned_to name="Dean Jackson">dino</assigned_to>
          <cc>cmarrin</cc>
    
    <cc>cmg473</cc>
    
    <cc>dschulze</cc>
    
    <cc>eoconnor</cc>
    
    <cc>smfr</cc>
    
    <cc>vhardy</cc>
          
          <qa_contact name="This bug has no owner yet - up for the taking">dave.null</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>61735</commentid>
    <comment_count>0</comment_count>
    <who name="Fabrice Robinet">cmg473</who>
    <bug_when>2011-12-17 05:52:06 +0000</bug_when>
    <thetext>This comment applies to CSS Shaders (https://dvcs.w3.org/hg/FXTF/raw-file/tip/custom/index.html).

Adding the normal matrix to the shader uniforms (6.2.2. Shader uniform variables) would enable lighting computation. Name would be &quot;u_normalMatrix&quot;.

We might also need normals to be sent along with vertices (referred as a_position in the spec), but because it is all about plans in the DOM, we could handle simple situations by assuming a (0,0,1) normal.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62617</commentid>
    <comment_count>1</comment_count>
    <who name="Chris Marrin">cmarrin</who>
    <bug_when>2012-01-12 21:54:52 +0000</bug_when>
    <thetext>As per the current thread, I believe we should use Gregg&apos;s idea of making the 24 matrices as shown in &quot;http://developer.download.nvidia.com/assets/gamedev/docs/Using_SAS_v1_03.pdf?display=default&quot; available. That list is:

WORLD
VIEW
PROJECTION
WORLDVIEW
VIEW PROJECTION
WORLDVIEWPROJECTION
WORLDINVERSE
VIEWINVERSE
PROJECTIONINVERSE
WORLDVIEWINVERSE
VIEWPROJECTIONINVERSE
WORLDVIEWPROJECTIONINVERSE
WORLDTRANSPOSE
VIEWTRANSPOSE
PROJECTIONTRANSPOSE
WORLDVIEWTRANSPOSE
VIEW PROJECTIONTRANSPOSE
WORLDVIEWPROJECTIONTRANSPOSE
WORLDINVERSETRANSPOSE
VIEWINVERSETRANSPOSE
PROJECTIONINVERSETRANSPOSE
WORLDVIEWINVERSETRANSPOSE
VIEW PROJECTIONINVERSETRANSPOSE
WORLDVIEWPROJECTIONINVERSETRANSPOSE

We should create a standard naming convention for each matrix (I don&apos;t think we should use all caps). It is an easy matter of reading the list of uniforms used by a shader and creating the requested matrix only when needed.

We also need to understand the meaning of the PROJECTION matrix. Where does that projection come from? Do we use the value of the CSS perspective property?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90358</commentid>
    <comment_count>2</comment_count>
    <who name="Dirk Schulze">dschulze</who>
    <bug_when>2013-07-04 16:10:23 +0000</bug_when>
    <thetext>*** Bug 16838 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114446</commentid>
    <comment_count>3</comment_count>
    <who name="Dirk Schulze">dschulze</who>
    <bug_when>2014-11-03 21:28:16 +0000</bug_when>
    <thetext>Shaders were removed from the spec. Closing bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>