CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 05:45:22 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/facebookresearch/pytorch3d.git
etag: W/"fc0f0f6b72ea733432bf472c42c1e05c"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=zQTUs%2BfArKJ%2B84vv78i1TI8da%2FnFfHFCQzYFLijw7qjkACd76krJMEN8Dcwll3fqD4RHsOiQN6bMvk%2F4vkJ7lFNk3r9PmHGiGBm5m%2BiDsDo9EoyVReejtL9%2FV1EpUKR369BpxyOMHEDSZ%2F1dwS0M2zEZ3Itov5qF6y1O2MeTwk%2B7nuqzq8YUcgUcjKTVCdbBz7mHKFE0XIiAmZPOVbKaVISyXKZJ5JweTuA7wVThke21%2FC9Vdo05xhm7fMo1yO8FnsInd7OYaEcVb2urfh5afA%3D%3D--jd%2BNlgIOIQujf4G4--a%2BfsY7%2F4vG58cOFVOioAjw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1915952937.1753595122; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 05:45:22 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 05:45:22 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: CD4A:3C6DB4:1B5099:27CD47:6885BCF2
Adding support for changing background color · facebookresearch/pytorch3d@65620e7 · GitHub
Copy file name to clipboardExpand all lines: pytorch3d/renderer/blending.py
Copy file name to clipboardExpand all lines: pytorch3d/renderer/mesh/shader.py
Copy file name to clipboardExpand all lines: tests/test_render_meshes.py
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit 65620e7
Adding support for changing background color
Summary: Adds support to hard_rgb_blend and hard blending shaders in shader.py (HardPhongShader, HardGouraudShader, and HardFlatShader) for changing the background color on which objects are rendered
Reviewed By: nikhilaravi
Differential Revision: D21746062
fbshipit-source-id: 08001200f4339d6a69c52405c6b8f4cac9f3f56e1 parent e3819a4 commit 65620e7Copy full SHA for 65620e7
File tree
Expand file treeCollapse file tree
4 files changed
+75
-23
lines changedFilter options
- pytorch3d/renderer
- mesh
- tests
Expand file treeCollapse file tree
4 files changed
+75
-23
lines changedpytorch3d/renderer/blending.py
Copy file name to clipboardExpand all lines: pytorch3d/renderer/blending.py+21-4Lines changed: 21 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 |
| - | |
| 22 | + | |
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
| |||
32 | 32 |
| |
33 | 33 |
| |
34 | 34 |
| |
| 35 | + | |
| 36 | + | |
35 | 37 |
| |
36 | 38 |
| |
37 | 39 |
| |
38 | 40 |
| |
39 | 41 |
| |
40 |
| - | |
41 |
| - | |
42 |
| - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
43 | 60 |
| |
44 | 61 |
| |
45 | 62 |
| |
|
pytorch3d/renderer/mesh/shader.py
Copy file name to clipboardExpand all lines: pytorch3d/renderer/mesh/shader.py+18-6Lines changed: 18 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
42 |
| - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
43 | 45 |
| |
44 | 46 |
| |
45 | 47 |
| |
46 | 48 |
| |
47 | 49 |
| |
48 | 50 |
| |
| 51 | + | |
49 | 52 |
| |
50 | 53 |
| |
51 | 54 |
| |
| |||
57 | 60 |
| |
58 | 61 |
| |
59 | 62 |
| |
| 63 | + | |
60 | 64 |
| |
61 | 65 |
| |
62 | 66 |
| |
| |||
65 | 69 |
| |
66 | 70 |
| |
67 | 71 |
| |
68 |
| - | |
| 72 | + | |
69 | 73 |
| |
70 | 74 |
| |
71 | 75 |
| |
| |||
130 | 134 |
| |
131 | 135 |
| |
132 | 136 |
| |
133 |
| - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
134 | 140 |
| |
135 | 141 |
| |
136 | 142 |
| |
137 | 143 |
| |
138 | 144 |
| |
139 | 145 |
| |
| 146 | + | |
140 | 147 |
| |
141 | 148 |
| |
142 | 149 |
| |
| |||
146 | 153 |
| |
147 | 154 |
| |
148 | 155 |
| |
| 156 | + | |
149 | 157 |
| |
150 | 158 |
| |
151 | 159 |
| |
152 | 160 |
| |
153 | 161 |
| |
154 | 162 |
| |
155 | 163 |
| |
156 |
| - | |
| 164 | + | |
157 | 165 |
| |
158 | 166 |
| |
159 | 167 |
| |
| |||
266 | 274 |
| |
267 | 275 |
| |
268 | 276 |
| |
269 |
| - | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
270 | 280 |
| |
271 | 281 |
| |
272 | 282 |
| |
273 | 283 |
| |
274 | 284 |
| |
275 | 285 |
| |
| 286 | + | |
276 | 287 |
| |
277 | 288 |
| |
278 | 289 |
| |
| |||
283 | 294 |
| |
284 | 295 |
| |
285 | 296 |
| |
| 297 | + | |
286 | 298 |
| |
287 | 299 |
| |
288 | 300 |
| |
| |||
291 | 303 |
| |
292 | 304 |
| |
293 | 305 |
| |
294 |
| - | |
| 306 | + | |
295 | 307 |
| |
296 | 308 |
| |
297 | 309 |
| |
|
+18-10Lines changed: 18 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
| 7 | + | |
7 | 8 |
| |
8 | 9 |
| |
9 | 10 |
| |
| |||
128 | 129 |
| |
129 | 130 |
| |
130 | 131 |
| |
131 |
| - | |
| 132 | + | |
132 | 133 |
| |
133 | 134 |
| |
134 | 135 |
| |
| |||
156 | 157 |
| |
157 | 158 |
| |
158 | 159 |
| |
159 |
| - | |
| 160 | + | |
160 | 161 |
| |
161 | 162 |
| |
162 | 163 |
| |
163 | 164 |
| |
164 | 165 |
| |
165 | 166 |
| |
166 | 167 |
| |
167 |
| - | |
168 |
| - | |
169 |
| - | |
170 |
| - | |
171 |
| - | |
172 |
| - | |
173 |
| - | |
174 |
| - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
175 | 183 |
| |
176 | 184 |
| |
177 | 185 |
| |
|
tests/test_render_meshes.py
Copy file name to clipboardExpand all lines: tests/test_render_meshes.py+18-3Lines changed: 18 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
77 | 77 |
| |
78 | 78 |
| |
79 | 79 |
| |
| 80 | + | |
80 | 81 |
| |
81 | 82 |
| |
82 | 83 |
| |
| |||
85 | 86 |
| |
86 | 87 |
| |
87 | 88 |
| |
88 |
| - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
89 | 95 |
| |
90 | 96 |
| |
91 | 97 |
| |
| |||
105 | 111 |
| |
106 | 112 |
| |
107 | 113 |
| |
108 |
| - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
109 | 118 |
| |
110 | 119 |
| |
111 | 120 |
| |
| |||
162 | 171 |
| |
163 | 172 |
| |
164 | 173 |
| |
| 174 | + | |
165 | 175 |
| |
166 | 176 |
| |
167 | 177 |
| |
| |||
171 | 181 |
| |
172 | 182 |
| |
173 | 183 |
| |
174 |
| - | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
175 | 190 |
| |
176 | 191 |
| |
177 | 192 |
| |
|
You can’t perform that action at this time.
0 commit comments