TAILIEUCHUNG - Advanced 3D Game Programming with DirectX - phần 9

Chúng tôi sử dụng một mặt nạ trên các khu phố của đỉnh xung quanh mép. Mặt nạ này là nơi mà các chương trình bướm đổi được tên của nó, bởi vì nó trông giống như một con bướm. Nó xuất hiện trong hình 9, nạ bướm bướm chương trình sửa đổi bổ sung thêm hai điểm và một tham số căng thẳng cho phép bạn kiểm soát độ sắc nét của bề mặt giới hạn. | D3DTA_SPECULAR The argument value is the texture color. It is recommended that this argument be used only in stage 1. D3DTA_ALPHAREPLICATE Additional flag used in conjunction with one of the above. Causes the alpha component of the color to be copied to the other three color values. D3DTA_COMPLEMENT Additional flag used in conjunction with one of the above. Causes all components to be inverted such that x x . Default D3DTOP_TEXTURE ALPHAOP Defines the operation done to combine ALPHAARG1 and ALPHAARG2. One of the members of the D3DTEXTUREOP enumeration discussed below. Default D3DTOP_DISABLE for all stages except stage 0 which is D3DTOP_MODULATE . ALPHAARG1 Describes the source for the arguments in the texture alpha operation. The ALPHAARG2 color argument can be any of the texture argument flags which are supplied in the description of COLORARG1 and COLORARG2. Default D3DTOP_TEXTURE BUMPENVMAT00 Coefficients for the bump-mapping matrix. The valid range for these values BUMPENVMAT01 is -8 8 . This is the mathematical way of saying that the number must be BUMPENVMAT10 equal or greater than -8 and less than but not equal to 8. BUMPENVMAT11 Default 0 TEXCOORDINDEX An integer describing which set of texture coordinates to use for a particular stage a vertex can be defined with up to eight vertices . You ll remember that back in Chapter 8 I described some vertex formats that had multiple sets of texture coordinates this is where you can use them. If a requested index doesn t occur in the vertex the behavior is to default to the texture coordinate 0 0 . The value can also be one of the following additional flags D3DTSS_TCI_PASSTHRU Texture coordinates should be taken from the input index into the array of texture coordinates. This flag resolves to zero. 569 D3DTSS_TCI_CAMERASPACENORMAL The texture coordinates for this stage are the normal for the vertex transformed into camera space. This is mostly useful when texture transforms are enabled. .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.