The AlphaRef is set with D3DRS_ALPHAREF, which is an integer ranging from 0x00000000 to 0x000000FF. However, AlphaValue computed by shader is a float value in range [0.0, 1.0]. So what is the expected comaparison of the two value, since them have different representing precision? Does the float AlphaValue need to do extra rounding operation?
What is expected comparison between AlphaRef and AlphaValue in D3D9?
71 Views Asked by wells hong At
1
There are 1 best solutions below
Related Questions in DIRECT3D9
- How to implement antialiasing in DirectShow?
- How to create a Texture2D format YV12 (DXGI_FORMAT_420_OPAQUE)
- Direct3D9 does not work without display monitor or minimizing and locking the screen
- What is expected comparison between AlphaRef and AlphaValue in D3D9?
- Call GetDeviceCaps failed when remote desktop is minimized
- d3d9 how to register software device
- How can I reliably identify when Direct3D9 "device" maps onto which Windows GDI "monitor"?
- &D3DXVECTOR3 causes error C2102 '&' requires l-value
- Direct3D9 "Clear" Function Not Clearing
- How to handle Direct3D 9Ex D3DERR_DEVICEHUNG error?
- Direct3D9 not drawing?
- How to perform alpha blending on saved raw argb videos(a image and a video will also work) using direct3d9 , direct3d10 or direct3d11?
- Direct3D 9 Z-Buffer Precision Bug occuring only in release build
- What is a data stream in DirectX 9?
- Get SharpDXException Invalid Parameters when try to create a new Texture for DirectX 9 on 32bit NVidia Quadro M1000M
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
In Direct3D 9 shaders, all input data is converted to floating-point and then converted as needed on output.