[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Public WebGL] WEBGL_depth_texture



https://www.khronos.org/registry/webgl/extensions/WEBGL_depth_texture/
has been updated to track the change to the underlying
ANGLE_depth_texture extension.

-Ken


On Thu, Feb 21, 2013 at 10:50 AM, Kenneth Russell <kbr@google.com> wrote:
> This change sounds fine to me. It will enable the extension on more
> platforms and guide developers toward writing portable shaders.
>
> -Ken
>
>
> On Wed, Feb 20, 2013 at 4:03 PM, Shannon Woods
> <shannon.woods@transgaming.com> wrote:
>>
>> WEBGL_depth_texture, currently in the process of ratification, has language
>> which poses some difficulty for ANGLE. Both WEBGL_depth_texture and
>> ANGLE_depth_texture, which it references, specify that the depth value is
>> stored in the r, g, and b channels, with alpha being undefined. This
>> language was included to allow for inconsistencies in the alpha value
>> returned when performing such samples via D3D9. However, conforming to this
>> creates a bit of a challenge when implemented over D3D11, as the depth value
>> is then only returned by D3D in the r channel, with the other channels
>> receiving 0, 0, 1 default values instead.
>>
>> Our issues would be resolved by changing ANGLE_depth_texture, as well as
>> WEBGL_depth_texture, to guarantee the depth value only in the r channel, and
>> extending the warning about implementation dependency to cover the g and b
>> channels in addition to alpha. Would there be any objections to making this
>> change?
>>
>> Thank you,
>> _____________________________________________________________________
>> Shannon Woods
>> Technical Manager, Graphics Technology
>>
>> TransGaming
>> T: +1 416-979-9900 x 408 | E:
>> shannon.woods@transgaming.com
>>
>> TransGaming.com  |  GameTreeMac.com  |  GameTreeTV.com
>> _____________________________________________________________________
>> This email and any files transmitted herein are confidential and intended
>> solely for the use of the individual or entity to whom they are addressed.
>> If you are not the intended recipient you are notified that disclosing,
>> copying, distributing or taking any action in reliance on the contents of
>> this information is strictly prohibited.
>>

-----------------------------------------------------------
You are currently subscribed to public_webgl@khronos.org.
To unsubscribe, send an email to majordomo@khronos.org with
the following command in the body of your email:
unsubscribe public_webgl
-----------------------------------------------------------