mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 13:37:45 +00:00
Have mobject uniforms supercede camera uniforms
This commit is contained in:
parent
e899604a2d
commit
25045143a1
1 changed files with 1 additions and 1 deletions
|
|
@ -437,7 +437,7 @@ class Camera(object):
|
||||||
for name, path in shader_wrapper.texture_paths.items():
|
for name, path in shader_wrapper.texture_paths.items():
|
||||||
tid = self.get_texture_id(path)
|
tid = self.get_texture_id(path)
|
||||||
shader[name].value = tid
|
shader[name].value = tid
|
||||||
for name, value in it.chain(shader_wrapper.uniforms.items(), self.perspective_uniforms.items()):
|
for name, value in it.chain(self.perspective_uniforms.items(), shader_wrapper.uniforms.items()):
|
||||||
try:
|
try:
|
||||||
if isinstance(value, np.ndarray):
|
if isinstance(value, np.ndarray):
|
||||||
value = tuple(value)
|
value = tuple(value)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue