Vocabulary
gpu.state

Class description
A blend-mode is specified as part of the blend-state to determine the blending equation used between the source (incoming fragment) and destination (existing framebuffer value) colors of blended pixels.
The equation slot determines how the source and destination colors are combined after the source-function and dest-function have been applied.
 • eq-add indicates that the source and destination results are added. • eq-subtract indicates that the destination result is subtracted from the source. • eq-reverse-subtract indicates that the source result is subtracted from the destination. • eq-min indicates that the componentwise minimum of the source and destination results is taken. • eq-max indicates that the componentwise maximum of the source and destination results is taken.
The source-function and dest-function slots each specify a function to apply to the source, destination, or constant color values to generate a blending factor that is multiplied respectively against the source or destination value before feeding the results to the equation.
 • func-zero returns a constant factor of zero. • func-one returns a constant factor of one. • func-source returns the corresponding source color component for every result component. • func-one-minus-source returns one minus the corresponding source color component for every result component. • func-dest returns the corresponding destination color component for every result component. • func-one-minus-dest returns one minus the corresponding destination color component for every result component. • func-constant returns the corresponding component of the current blend-state's constant-color for every result component. • func-one-minus-constant returns one minus the corresponding component of the current blend-state's constant-color for every result component. • func-source-alpha returns the source alpha component for every result component. • func-one-minus-source-alpha returns one minus the source alpha component for every result component. • func-dest-alpha returns the destination alpha component for every result component. • func-one-minus-dest-alpha returns one minus the destination alpha component for every result component. • func-constant-alpha returns the alpha component of the current blend-state's constant-color for every result component. • func-one-minus-constant-alpha returns one minus the alpha component of the current blend-state's constant-color for every result component.
A typical transparency effect will use the values:
T{ blend-mode { equation eq-add } { source-function func-source-alpha } { dest-function func-one-minus-source-alpha } }
{"ft_lang_label":"__label__en","ft_lang_prob":0.74060196,"math_prob":0.8896009,"size":1328,"snap":"2022-27-2022-33","text_gpt3_token_len":274,"char_repetition_ratio":0.20090635,"word_repetition_ratio":0.07103825,"special_character_ratio":0.19804217,"punctuation_ratio":0.057692308,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9555212,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-07-06T00:36:32Z\",\"WARC-Record-ID\":\"<urn:uuid:710f30b9-3e6a-4aa4-899d-6e6a4bf373c9>\",\"Content-Length\":\"14527\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:7627272b-699a-4ab4-a98b-327c6f5e684d>\",\"WARC-Concurrent-To\":\"<urn:uuid:9c926e81-635c-4217-a0c6-53b276543d9d>\",\"WARC-IP-Address\":\"5.161.56.241\",\"WARC-Target-URI\":\"https://docs.factorcode.org/content/word-blend-mode%2Cgpu.state.html\",\"WARC-Payload-Digest\":\"sha1:OSJWK4FO6TLHCQSEU3DQ6Q4PJCRHUA4R\",\"WARC-Block-Digest\":\"sha1:FHQ267PUCO5Y4JKSJWYQMDACIK5FV3EX\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-27/CC-MAIN-2022-27_segments_1656104655865.86_warc_CC-MAIN-20220705235755-20220706025755-00270.warc.gz\"}"}