Add Chromium-only Blender WebEngine parity work
This commit is contained in:
33
blender-5.2.0/scripts/freestyle/styles/external_contour.py
Normal file
33
blender-5.2.0/scripts/freestyle/styles/external_contour.py
Normal file
@@ -0,0 +1,33 @@
|
||||
# SPDX-FileCopyrightText: 2008-2023 Blender Authors
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
# Author : Stephane Grabli
|
||||
# Date : 04/08/2005
|
||||
# Purpose : Draws the external contour of the scene
|
||||
|
||||
from freestyle.chainingiterators import ChainPredicateIterator
|
||||
from freestyle.predicates import (
|
||||
AndUP1D,
|
||||
ExternalContourUP1D,
|
||||
NotUP1D,
|
||||
QuantitativeInvisibilityUP1D,
|
||||
TrueBP1D,
|
||||
TrueUP1D,
|
||||
)
|
||||
from freestyle.shaders import (
|
||||
ConstantColorShader,
|
||||
ConstantThicknessShader,
|
||||
)
|
||||
from freestyle.types import Operators
|
||||
|
||||
|
||||
upred = AndUP1D(QuantitativeInvisibilityUP1D(0), ExternalContourUP1D())
|
||||
Operators.select(upred)
|
||||
bpred = TrueBP1D()
|
||||
Operators.bidirectional_chain(ChainPredicateIterator(upred, bpred), NotUP1D(upred))
|
||||
shaders_list = [
|
||||
ConstantThicknessShader(3),
|
||||
ConstantColorShader(0.0, 0.0, 0.0, 1),
|
||||
]
|
||||
Operators.create(TrueUP1D(), shaders_list)
|
||||
Reference in New Issue
Block a user