@aguacerowx/react-native 0.0.34 → 0.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +126 -126
- package/aguacerowx-react-native.podspec +38 -38
- package/android/build/.transforms/42e9b8fa82d77a1c205db5bf0d0ed519/results.bin +1 -0
- package/android/build/.transforms/42e9b8fa82d77a1c205db5bf0d0ed519/transformed/classes/classes_dex/classes.dex +0 -0
- package/android/build/.transforms/c8ab78b63f2cc835ac936d58e29a17ab/results.bin +1 -0
- package/android/build/.transforms/c8ab78b63f2cc835ac936d58e29a17ab/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/AguaceroPackage.dex +0 -0
- package/android/build/.transforms/c8ab78b63f2cc835ac936d58e29a17ab/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/BuildConfig.dex +0 -0
- package/android/build/.transforms/c8ab78b63f2cc835ac936d58e29a17ab/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.dex +0 -0
- package/android/build/.transforms/c8ab78b63f2cc835ac936d58e29a17ab/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/GridRenderLayer.dex +0 -0
- package/android/build/.transforms/c8ab78b63f2cc835ac936d58e29a17ab/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/GridRenderLayerView.dex +0 -0
- package/android/build/.transforms/c8ab78b63f2cc835ac936d58e29a17ab/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/GridRenderManager.dex +0 -0
- package/android/build/.transforms/c8ab78b63f2cc835ac936d58e29a17ab/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/InspectorModule.dex +0 -0
- package/android/build/.transforms/c8ab78b63f2cc835ac936d58e29a17ab/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/ShaderUtils.dex +0 -0
- package/android/build/.transforms/c8ab78b63f2cc835ac936d58e29a17ab/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/WeatherFrameProcessorModule.dex +0 -0
- package/android/build/.transforms/c8ab78b63f2cc835ac936d58e29a17ab/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.dex +0 -0
- package/android/build/.transforms/c8ab78b63f2cc835ac936d58e29a17ab/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.dex +0 -0
- package/android/build/.transforms/c8ab78b63f2cc835ac936d58e29a17ab/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
- package/android/build/generated/source/buildConfig/debug/com/aguacerowx/reactnative/BuildConfig.java +10 -0
- package/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.java +43 -0
- package/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.java +22 -0
- package/android/build/generated/source/codegen/jni/AguaceroWxReactNativeSpec-generated.cpp +22 -0
- package/android/build/generated/source/codegen/jni/AguaceroWxReactNativeSpec.h +24 -0
- package/android/build/generated/source/codegen/jni/CMakeLists.txt +28 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/AguaceroWxReactNativeSpecJSI-generated.cpp +17 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/AguaceroWxReactNativeSpecJSI.h +19 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/ComponentDescriptors.cpp +22 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/ComponentDescriptors.h +24 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/EventEmitters.cpp +16 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/EventEmitters.h +23 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/Props.cpp +62 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/Props.h +40 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/ShadowNodes.cpp +17 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/ShadowNodes.h +32 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/States.cpp +16 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/States.h +20 -0
- package/android/build/generated/source/codegen/schema.json +1 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +8 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +18 -0
- package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +6 -0
- package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +1 -0
- package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
- package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +4 -0
- package/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_fragment_shader.glsl.flat +0 -0
- package/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_vertex_shader.glsl.flat +0 -0
- package/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_fragment_shader.glsl.flat +0 -0
- package/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_vertex_shader.glsl.flat +0 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +5 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeDebugAssets/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/BuildConfig.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/InspectorModule.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.class +0 -0
- package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +6 -0
- package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +8 -0
- package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +8 -0
- package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +1 -0
- package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +1 -0
- package/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_fragment_shader.glsl +13 -0
- package/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_vertex_shader.glsl +13 -0
- package/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/fragment_shader.glsl +189 -0
- package/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/vertex_shader.glsl +20 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/BuildConfig.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/InspectorModule.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.class +0 -0
- package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +5 -0
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +17 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayer$VertexInfo.class.uniqueId0 +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayer.class.uniqueId1 +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayerView.class.uniqueId2 +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/android/build.gradle +107 -107
- package/android/src/main/AndroidManifest.xml +6 -6
- package/android/src/main/java/com/aguacerowx/reactnative/AguaceroPackage.java +33 -33
- package/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayer.java +688 -688
- package/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayerView.java +304 -304
- package/android/src/main/java/com/aguacerowx/reactnative/GridRenderManager.java +125 -125
- package/android/src/main/java/com/aguacerowx/reactnative/InspectorModule.java +71 -71
- package/android/src/main/java/com/aguacerowx/reactnative/ShaderUtils.java +106 -106
- package/android/src/main/java/com/aguacerowx/reactnative/WeatherFrameProcessorModule.java +151 -151
- package/android/src/main/res/raw/debug_fragment_shader.glsl +12 -12
- package/android/src/main/res/raw/debug_vertex_shader.glsl +12 -12
- package/android/src/main/res/raw/fragment_shader.glsl +188 -188
- package/android/src/main/res/raw/vertex_shader.glsl +19 -19
- package/index.js +2 -2
- package/ios/AguaceroPackage.m +18 -18
- package/ios/FragmentUniforms.swift +15 -15
- package/ios/GridRenderLayer.swift +1004 -1004
- package/ios/GridRenderLayerBridge.swift +36 -36
- package/ios/GridRenderLayerManager.mm +157 -157
- package/ios/GridRenderLayerView.h +30 -30
- package/ios/GridRenderLayerView.m +216 -216
- package/ios/InspectorDataCache.swift +65 -65
- package/ios/InspectorModule.m +9 -9
- package/ios/InspectorModule.swift +63 -63
- package/ios/Shaders.metal +327 -327
- package/ios/WeatherFrameProcessorModule.m +15 -15
- package/ios/WeatherFrameProcessorModule.swift +103 -103
- package/lib/commonjs/README.md +126 -126
- package/lib/commonjs/aguacerowx-react-native.podspec +38 -38
- package/lib/commonjs/android/build/generated/source/buildConfig/debug/com/aguacerowx/reactnative/BuildConfig.java +10 -0
- package/lib/commonjs/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.java +43 -0
- package/lib/commonjs/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.java +22 -0
- package/lib/commonjs/android/build/generated/source/codegen/jni/AguaceroWxReactNativeSpec-generated.cpp +22 -0
- package/lib/commonjs/android/build/generated/source/codegen/jni/AguaceroWxReactNativeSpec.h +24 -0
- package/lib/commonjs/android/build/generated/source/codegen/jni/CMakeLists.txt +28 -0
- package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/AguaceroWxReactNativeSpecJSI-generated.cpp +17 -0
- package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/AguaceroWxReactNativeSpecJSI.h +19 -0
- package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/ComponentDescriptors.cpp +22 -0
- package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/ComponentDescriptors.h +24 -0
- package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/EventEmitters.cpp +16 -0
- package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/EventEmitters.h +23 -0
- package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/Props.cpp +62 -0
- package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/Props.h +40 -0
- package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/ShadowNodes.cpp +17 -0
- package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/ShadowNodes.h +32 -0
- package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/States.cpp +16 -0
- package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/States.h +20 -0
- package/lib/commonjs/android/build/generated/source/codegen/schema.json +1 -0
- package/lib/commonjs/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +8 -0
- package/lib/commonjs/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +18 -0
- package/lib/commonjs/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +6 -0
- package/lib/commonjs/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +1 -0
- package/lib/commonjs/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
- package/lib/commonjs/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
- package/lib/commonjs/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +4 -0
- package/lib/commonjs/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_fragment_shader.glsl.flat +0 -0
- package/lib/commonjs/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_vertex_shader.glsl.flat +0 -0
- package/lib/commonjs/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_fragment_shader.glsl.flat +0 -0
- package/lib/commonjs/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_vertex_shader.glsl.flat +0 -0
- package/lib/commonjs/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +5 -0
- package/lib/commonjs/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
- package/lib/commonjs/android/build/intermediates/incremental/mergeDebugAssets/merger.xml +2 -0
- package/lib/commonjs/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
- package/lib/commonjs/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
- package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
- package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/BuildConfig.class +0 -0
- package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
- package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
- package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
- package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
- package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/InspectorModule.class +0 -0
- package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
- package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
- package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.class +0 -0
- package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.class +0 -0
- package/lib/commonjs/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +6 -0
- package/lib/commonjs/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +8 -0
- package/lib/commonjs/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +8 -0
- package/lib/commonjs/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +1 -0
- package/lib/commonjs/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +1 -0
- package/lib/commonjs/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_fragment_shader.glsl +13 -0
- package/lib/commonjs/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_vertex_shader.glsl +13 -0
- package/lib/commonjs/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/fragment_shader.glsl +189 -0
- package/lib/commonjs/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/vertex_shader.glsl +20 -0
- package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
- package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/BuildConfig.class +0 -0
- package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
- package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
- package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
- package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
- package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/InspectorModule.class +0 -0
- package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
- package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
- package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.class +0 -0
- package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.class +0 -0
- package/lib/commonjs/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
- package/lib/commonjs/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +5 -0
- package/lib/commonjs/android/build/outputs/logs/manifest-merger-debug-report.txt +17 -0
- package/lib/commonjs/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayer$VertexInfo.class.uniqueId0 +0 -0
- package/lib/commonjs/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayer.class.uniqueId1 +0 -0
- package/lib/commonjs/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayerView.class.uniqueId2 +0 -0
- package/lib/commonjs/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/lib/commonjs/android/build.gradle +107 -107
- package/lib/commonjs/android/src/main/AndroidManifest.xml +6 -6
- package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/AguaceroPackage.java +33 -33
- package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayer.java +688 -688
- package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayerView.java +304 -304
- package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/GridRenderManager.java +125 -125
- package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/InspectorModule.java +71 -71
- package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/ShaderUtils.java +106 -106
- package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/WeatherFrameProcessorModule.java +151 -151
- package/lib/commonjs/android/src/main/res/raw/debug_fragment_shader.glsl +12 -12
- package/lib/commonjs/android/src/main/res/raw/debug_vertex_shader.glsl +12 -12
- package/lib/commonjs/android/src/main/res/raw/fragment_shader.glsl +188 -188
- package/lib/commonjs/android/src/main/res/raw/vertex_shader.glsl +19 -19
- package/lib/commonjs/babel.config.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/ios/AguaceroPackage.m +18 -18
- package/lib/commonjs/ios/FragmentUniforms.swift +15 -15
- package/lib/commonjs/ios/GridRenderLayer.swift +1004 -1004
- package/lib/commonjs/ios/GridRenderLayerBridge.swift +36 -36
- package/lib/commonjs/ios/GridRenderLayerManager.mm +157 -157
- package/lib/commonjs/ios/GridRenderLayerView.h +30 -30
- package/lib/commonjs/ios/GridRenderLayerView.m +216 -216
- package/lib/commonjs/ios/InspectorDataCache.swift +65 -65
- package/lib/commonjs/ios/InspectorModule.m +9 -9
- package/lib/commonjs/ios/InspectorModule.swift +63 -63
- package/lib/commonjs/ios/Shaders.metal +327 -327
- package/lib/commonjs/ios/WeatherFrameProcessorModule.m +15 -15
- package/lib/commonjs/ios/WeatherFrameProcessorModule.swift +103 -103
- package/lib/commonjs/package.json +72 -72
- package/lib/commonjs/react-native-builder-bob.config.js.map +1 -1
- package/lib/commonjs/scripts/compile-shaders.js.map +1 -1
- package/lib/commonjs/scripts/compile-shaders.sh +38 -38
- package/lib/commonjs/src/AguaceroContext.js.map +1 -1
- package/lib/commonjs/src/GridRenderLayer.js.map +1 -1
- package/lib/commonjs/src/GridRenderLayerNativeComponent.js.map +1 -1
- package/lib/commonjs/src/MapManager.js.map +1 -1
- package/lib/commonjs/src/MapRegistry.js.map +1 -1
- package/lib/commonjs/src/StyleApplicator.js +6 -6
- package/lib/commonjs/src/StyleApplicator.js.map +1 -1
- package/lib/commonjs/src/WeatherLayerManager.js +5 -18
- package/lib/commonjs/src/WeatherLayerManager.js.map +1 -1
- package/lib/commonjs/tsconfig.json +23 -23
- package/lib/module/README.md +126 -126
- package/lib/module/aguacerowx-react-native.podspec +38 -38
- package/lib/module/android/build/generated/source/buildConfig/debug/com/aguacerowx/reactnative/BuildConfig.java +10 -0
- package/lib/module/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.java +43 -0
- package/lib/module/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.java +22 -0
- package/lib/module/android/build/generated/source/codegen/jni/AguaceroWxReactNativeSpec-generated.cpp +22 -0
- package/lib/module/android/build/generated/source/codegen/jni/AguaceroWxReactNativeSpec.h +24 -0
- package/lib/module/android/build/generated/source/codegen/jni/CMakeLists.txt +28 -0
- package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/AguaceroWxReactNativeSpecJSI-generated.cpp +17 -0
- package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/AguaceroWxReactNativeSpecJSI.h +19 -0
- package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/ComponentDescriptors.cpp +22 -0
- package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/ComponentDescriptors.h +24 -0
- package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/EventEmitters.cpp +16 -0
- package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/EventEmitters.h +23 -0
- package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/Props.cpp +62 -0
- package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/Props.h +40 -0
- package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/ShadowNodes.cpp +17 -0
- package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/ShadowNodes.h +32 -0
- package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/States.cpp +16 -0
- package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/States.h +20 -0
- package/lib/module/android/build/generated/source/codegen/schema.json +1 -0
- package/lib/module/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +8 -0
- package/lib/module/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +18 -0
- package/lib/module/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +6 -0
- package/lib/module/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +1 -0
- package/lib/module/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
- package/lib/module/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
- package/lib/module/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +4 -0
- package/lib/module/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_fragment_shader.glsl.flat +0 -0
- package/lib/module/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_vertex_shader.glsl.flat +0 -0
- package/lib/module/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_fragment_shader.glsl.flat +0 -0
- package/lib/module/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_vertex_shader.glsl.flat +0 -0
- package/lib/module/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +5 -0
- package/lib/module/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
- package/lib/module/android/build/intermediates/incremental/mergeDebugAssets/merger.xml +2 -0
- package/lib/module/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
- package/lib/module/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
- package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
- package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/BuildConfig.class +0 -0
- package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
- package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
- package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
- package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
- package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/InspectorModule.class +0 -0
- package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
- package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
- package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.class +0 -0
- package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.class +0 -0
- package/lib/module/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +6 -0
- package/lib/module/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +8 -0
- package/lib/module/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +8 -0
- package/lib/module/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +1 -0
- package/lib/module/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +1 -0
- package/lib/module/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_fragment_shader.glsl +13 -0
- package/lib/module/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_vertex_shader.glsl +13 -0
- package/lib/module/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/fragment_shader.glsl +189 -0
- package/lib/module/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/vertex_shader.glsl +20 -0
- package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
- package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/BuildConfig.class +0 -0
- package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
- package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
- package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
- package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
- package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/InspectorModule.class +0 -0
- package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
- package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
- package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.class +0 -0
- package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.class +0 -0
- package/lib/module/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
- package/lib/module/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +5 -0
- package/lib/module/android/build/outputs/logs/manifest-merger-debug-report.txt +17 -0
- package/lib/module/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayer$VertexInfo.class.uniqueId0 +0 -0
- package/lib/module/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayer.class.uniqueId1 +0 -0
- package/lib/module/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayerView.class.uniqueId2 +0 -0
- package/lib/module/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/lib/module/android/build.gradle +107 -107
- package/lib/module/android/src/main/AndroidManifest.xml +6 -6
- package/lib/module/android/src/main/java/com/aguacerowx/reactnative/AguaceroPackage.java +33 -33
- package/lib/module/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayer.java +688 -688
- package/lib/module/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayerView.java +304 -304
- package/lib/module/android/src/main/java/com/aguacerowx/reactnative/GridRenderManager.java +125 -125
- package/lib/module/android/src/main/java/com/aguacerowx/reactnative/InspectorModule.java +71 -71
- package/lib/module/android/src/main/java/com/aguacerowx/reactnative/ShaderUtils.java +106 -106
- package/lib/module/android/src/main/java/com/aguacerowx/reactnative/WeatherFrameProcessorModule.java +151 -151
- package/lib/module/android/src/main/res/raw/debug_fragment_shader.glsl +12 -12
- package/lib/module/android/src/main/res/raw/debug_vertex_shader.glsl +12 -12
- package/lib/module/android/src/main/res/raw/fragment_shader.glsl +188 -188
- package/lib/module/android/src/main/res/raw/vertex_shader.glsl +19 -19
- package/lib/module/babel.config.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/ios/AguaceroPackage.m +18 -18
- package/lib/module/ios/FragmentUniforms.swift +15 -15
- package/lib/module/ios/GridRenderLayer.swift +1004 -1004
- package/lib/module/ios/GridRenderLayerBridge.swift +36 -36
- package/lib/module/ios/GridRenderLayerManager.mm +157 -157
- package/lib/module/ios/GridRenderLayerView.h +30 -30
- package/lib/module/ios/GridRenderLayerView.m +216 -216
- package/lib/module/ios/InspectorDataCache.swift +65 -65
- package/lib/module/ios/InspectorModule.m +9 -9
- package/lib/module/ios/InspectorModule.swift +63 -63
- package/lib/module/ios/Shaders.metal +327 -327
- package/lib/module/ios/WeatherFrameProcessorModule.m +15 -15
- package/lib/module/ios/WeatherFrameProcessorModule.swift +103 -103
- package/lib/module/lib/commonjs/README.md +126 -126
- package/lib/module/lib/commonjs/aguacerowx-react-native.podspec +38 -38
- package/lib/module/lib/commonjs/android/build.gradle +108 -0
- package/lib/module/lib/commonjs/android/src/main/AndroidManifest.xml +7 -0
- package/lib/module/lib/commonjs/babel.config.js.map +1 -1
- package/lib/module/lib/commonjs/index.js.map +1 -1
- package/lib/module/lib/commonjs/ios/AguaceroPackage.m +19 -0
- package/lib/module/lib/commonjs/ios/FragmentUniforms.swift +16 -0
- package/lib/module/lib/commonjs/ios/GridRenderLayer.swift +1004 -0
- package/lib/module/lib/commonjs/ios/GridRenderLayerBridge.swift +37 -0
- package/lib/module/lib/commonjs/ios/GridRenderLayerManager.mm +158 -0
- package/lib/module/lib/commonjs/ios/GridRenderLayerView.h +31 -0
- package/lib/module/lib/commonjs/ios/GridRenderLayerView.m +217 -0
- package/lib/module/lib/commonjs/ios/InspectorDataCache.swift +66 -0
- package/lib/module/lib/commonjs/ios/InspectorModule.m +10 -0
- package/lib/module/lib/commonjs/ios/InspectorModule.swift +64 -0
- package/lib/module/lib/commonjs/ios/Shaders.metal +328 -0
- package/lib/module/lib/commonjs/ios/WeatherFrameProcessorModule.m +16 -0
- package/lib/module/lib/commonjs/ios/WeatherFrameProcessorModule.swift +104 -0
- package/lib/module/lib/commonjs/ios/compiled-shaders/Shaders-device.metallib +0 -0
- package/lib/module/lib/commonjs/ios/compiled-shaders/Shaders-simulator.metallib +0 -0
- package/lib/module/lib/commonjs/ios/generated/AguaceroWxReactNativeSpec-generated.mm +0 -0
- package/lib/module/lib/commonjs/package.json +72 -72
- package/lib/module/lib/commonjs/react-native-builder-bob.config.js.map +1 -1
- package/lib/module/lib/commonjs/scripts/compile-shaders.js.map +1 -1
- package/lib/module/lib/commonjs/scripts/compile-shaders.sh +39 -0
- package/lib/module/lib/commonjs/src/AguaceroContext.js.map +1 -1
- package/lib/module/lib/commonjs/src/GridRenderLayer.js.map +1 -1
- package/lib/module/lib/commonjs/src/GridRenderLayerNativeComponent.js.map +1 -1
- package/lib/module/lib/commonjs/src/MapManager.js.map +1 -1
- package/lib/module/lib/commonjs/src/MapRegistry.js.map +1 -1
- package/lib/module/lib/commonjs/src/StyleApplicator.js +6 -6
- package/lib/module/lib/commonjs/src/StyleApplicator.js.map +1 -1
- package/lib/module/lib/commonjs/src/WeatherLayerManager.js +5 -18
- package/lib/module/lib/commonjs/src/WeatherLayerManager.js.map +1 -1
- package/lib/module/lib/commonjs/tsconfig.json +23 -23
- package/lib/module/package.json +72 -72
- package/lib/module/react-native-builder-bob.config.js.map +1 -1
- package/lib/module/scripts/compile-shaders.js.map +1 -1
- package/lib/module/scripts/compile-shaders.sh +38 -38
- package/lib/module/src/AguaceroContext.js.map +1 -1
- package/lib/module/src/GridRenderLayer.js.map +1 -1
- package/lib/module/src/GridRenderLayerNativeComponent.js.map +1 -1
- package/lib/module/src/MapManager.js.map +1 -1
- package/lib/module/src/MapRegistry.js.map +1 -1
- package/lib/module/src/StyleApplicator.js +6 -6
- package/lib/module/src/StyleApplicator.js.map +1 -1
- package/lib/module/src/WeatherLayerManager.js +5 -18
- package/lib/module/src/WeatherLayerManager.js.map +1 -1
- package/lib/module/tsconfig.json +23 -23
- package/lib/typescript/src/WeatherLayerManager.d.ts.map +1 -1
- package/package.json +72 -72
- package/src/AguaceroContext.js +3 -3
- package/src/GridRenderLayer.js +215 -215
- package/src/GridRenderLayerNativeComponent.ts +15 -15
- package/src/MapManager.js +218 -218
- package/src/MapRegistry.js +34 -34
- package/src/StyleApplicator.js +240 -240
- package/src/WeatherLayerManager.js +1137 -1151
|
@@ -1,189 +1,189 @@
|
|
|
1
|
-
precision highp float;
|
|
2
|
-
varying vec2 v_texCoord;
|
|
3
|
-
|
|
4
|
-
uniform sampler2D u_data_texture;
|
|
5
|
-
uniform sampler2D u_colormap_texture;
|
|
6
|
-
|
|
7
|
-
// Data parameters
|
|
8
|
-
uniform float u_scale;
|
|
9
|
-
uniform float u_offset;
|
|
10
|
-
uniform float u_missing_quantized;
|
|
11
|
-
uniform int u_scale_type; // 0 for linear, 1 for sqrt
|
|
12
|
-
|
|
13
|
-
// Style parameters
|
|
14
|
-
uniform float u_opacity;
|
|
15
|
-
uniform vec2 u_data_range;
|
|
16
|
-
|
|
17
|
-
// Rendering parameters
|
|
18
|
-
uniform vec2 u_texture_size;
|
|
19
|
-
uniform int u_smoothing;
|
|
20
|
-
uniform int u_is_ptype; // Flag for ptype variables
|
|
21
|
-
uniform int u_is_mrms; // NEW: Flag for MRMS data
|
|
22
|
-
|
|
23
|
-
// --- HELPER FUNCTIONS ---
|
|
24
|
-
|
|
25
|
-
// Dequantizes a signed value (-127 to 127) into a physical value
|
|
26
|
-
float dequantize_val(float q_val) {
|
|
27
|
-
if (abs(q_val - u_missing_quantized) < 0.5) {
|
|
28
|
-
return -9999.0;
|
|
29
|
-
}
|
|
30
|
-
float intermediate = q_val * u_scale + u_offset;
|
|
31
|
-
if (u_scale_type == 1) { // 1 = sqrt
|
|
32
|
-
return intermediate * abs(intermediate);
|
|
33
|
-
}
|
|
34
|
-
return intermediate;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// Samples texture, converts 0-255 to signed -128-127 range.
|
|
38
|
-
// Returns a quantized value, or a large positive sentinel for missing data.
|
|
39
|
-
float get_value(vec2 coord) {
|
|
40
|
-
float value_0_to_255 = texture2D(u_data_texture, coord).a * 255.0;
|
|
41
|
-
float val = value_0_to_255 - 128.0;
|
|
42
|
-
float missing_in_texture_range_0_255 = u_missing_quantized + 128.0;
|
|
43
|
-
if (abs(value_0_to_255 - missing_in_texture_range_0_255) < 0.5) {
|
|
44
|
-
return 99999.0; // Sentinel for "missing"
|
|
45
|
-
}
|
|
46
|
-
return val;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
// Maps a physical value to a precipitation type category
|
|
50
|
-
float get_ptype_from_physical(float val) {
|
|
51
|
-
if (val < 0.0) return -1.0;
|
|
52
|
-
|
|
53
|
-
if (u_is_mrms == 1) {
|
|
54
|
-
// MRMS: 0-100 rain, 100-200 snow, 200-300 freezing rain
|
|
55
|
-
if (val < 100.0) return 0.0;
|
|
56
|
-
if (val < 200.0) return 1.0;
|
|
57
|
-
if (val < 300.0) return 2.0;
|
|
58
|
-
return -1.0;
|
|
59
|
-
} else {
|
|
60
|
-
// Models: 0-100 rain, 100-200 snow, 200-300 freezing rain, 300-400 ice pellets
|
|
61
|
-
if (val < 100.0) return 0.0;
|
|
62
|
-
if (val < 200.0) return 1.0;
|
|
63
|
-
if (val < 300.0) return 2.0;
|
|
64
|
-
if (val < 400.0) return 3.0;
|
|
65
|
-
return -1.0;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
void main() {
|
|
71
|
-
float raw_value;
|
|
72
|
-
float total_weight = 1.0; // Used for alpha feathering at data edges
|
|
73
|
-
|
|
74
|
-
if (u_smoothing == 0) { // Nearest neighbor
|
|
75
|
-
float quantized_value = get_value(v_texCoord);
|
|
76
|
-
if (quantized_value >= 99999.0) {
|
|
77
|
-
discard;
|
|
78
|
-
}
|
|
79
|
-
raw_value = dequantize_val(quantized_value);
|
|
80
|
-
|
|
81
|
-
} else { // Bilinear interpolation
|
|
82
|
-
vec2 texel_size = 1.0 / u_texture_size;
|
|
83
|
-
vec2 tex_coord_in_texels = v_texCoord * u_texture_size;
|
|
84
|
-
vec2 bl_texel_index = floor(tex_coord_in_texels - 0.5);
|
|
85
|
-
vec2 f = fract(tex_coord_in_texels - 0.5); // Interpolation factors
|
|
86
|
-
|
|
87
|
-
// Coordinates of the 4 neighboring texels
|
|
88
|
-
vec2 v00_coord = (bl_texel_index + vec2(0.5, 0.5)) * texel_size;
|
|
89
|
-
vec2 v10_coord = (bl_texel_index + vec2(1.5, 0.5)) * texel_size;
|
|
90
|
-
vec2 v01_coord = (bl_texel_index + vec2(0.5, 1.5)) * texel_size;
|
|
91
|
-
vec2 v11_coord = (bl_texel_index + vec2(1.5, 1.5)) * texel_size;
|
|
92
|
-
|
|
93
|
-
if (u_is_ptype == 1) {
|
|
94
|
-
float v00 = dequantize_val(get_value(v00_coord));
|
|
95
|
-
float v10 = dequantize_val(get_value(v10_coord));
|
|
96
|
-
float v01 = dequantize_val(get_value(v01_coord));
|
|
97
|
-
float v11 = dequantize_val(get_value(v11_coord));
|
|
98
|
-
|
|
99
|
-
float p00 = get_ptype_from_physical(v00);
|
|
100
|
-
float p10 = get_ptype_from_physical(v10);
|
|
101
|
-
float p01 = get_ptype_from_physical(v01);
|
|
102
|
-
float p11 = get_ptype_from_physical(v11);
|
|
103
|
-
|
|
104
|
-
// Calculate geometric weights
|
|
105
|
-
float w00 = (1.0 - f.x) * (1.0 - f.y);
|
|
106
|
-
float w10 = f.x * (1.0 - f.y);
|
|
107
|
-
float w01 = (1.0 - f.x) * f.y;
|
|
108
|
-
float w11 = f.x * f.y;
|
|
109
|
-
|
|
110
|
-
// 1. Calculate 'smoothing_weight' (The Raw Alpha)
|
|
111
|
-
// This is the sum of valid neighbor weights.
|
|
112
|
-
float smoothing_weight = 0.0;
|
|
113
|
-
if (p00 >= 0.0) smoothing_weight += w00;
|
|
114
|
-
if (p10 >= 0.0) smoothing_weight += w10;
|
|
115
|
-
if (p01 >= 0.0) smoothing_weight += w01;
|
|
116
|
-
if (p11 >= 0.0) smoothing_weight += w11;
|
|
117
|
-
|
|
118
|
-
if (smoothing_weight <= 0.0) discard;
|
|
119
|
-
|
|
120
|
-
// 2. Voting Logic for Color (The "Winning" Type)
|
|
121
|
-
// This preserves the sharp internal borders you liked.
|
|
122
|
-
float weight_type_0 = 0.0;
|
|
123
|
-
float weight_type_1 = 0.0;
|
|
124
|
-
float weight_type_2 = 0.0;
|
|
125
|
-
float weight_type_3 = 0.0;
|
|
126
|
-
|
|
127
|
-
if (p00 >= 0.0) { int t = int(p00); if(t==0) weight_type_0+=w00; else if(t==1) weight_type_1+=w00; else if(t==2) weight_type_2+=w00; else if(t==3) weight_type_3+=w00; }
|
|
128
|
-
if (p10 >= 0.0) { int t = int(p10); if(t==0) weight_type_0+=w10; else if(t==1) weight_type_1+=w10; else if(t==2) weight_type_2+=w10; else if(t==3) weight_type_3+=w10; }
|
|
129
|
-
if (p01 >= 0.0) { int t = int(p01); if(t==0) weight_type_0+=w01; else if(t==1) weight_type_1+=w01; else if(t==2) weight_type_2+=w01; else if(t==3) weight_type_3+=w01; }
|
|
130
|
-
if (p11 >= 0.0) { int t = int(p11); if(t==0) weight_type_0+=w11; else if(t==1) weight_type_1+=w11; else if(t==2) weight_type_2+=w11; else if(t==3) weight_type_3+=w11; }
|
|
131
|
-
|
|
132
|
-
float max_w = weight_type_0; float winning_type = 0.0;
|
|
133
|
-
if (weight_type_1 > max_w) { max_w = weight_type_1; winning_type = 1.0; }
|
|
134
|
-
if (weight_type_2 > max_w) { max_w = weight_type_2; winning_type = 2.0; }
|
|
135
|
-
if (weight_type_3 > max_w) { max_w = weight_type_3; winning_type = 3.0; }
|
|
136
|
-
|
|
137
|
-
// 3. Average value only among pixels of the winning type
|
|
138
|
-
float value_sum = 0.0;
|
|
139
|
-
float value_weight = 0.0;
|
|
140
|
-
|
|
141
|
-
if (p00 == winning_type) { value_sum += v00 * w00; value_weight += w00; }
|
|
142
|
-
if (p10 == winning_type) { value_sum += v10 * w10; value_weight += w10; }
|
|
143
|
-
if (p01 == winning_type) { value_sum += v01 * w01; value_weight += w01; }
|
|
144
|
-
if (p11 == winning_type) { value_sum += v11 * w11; value_weight += w11; }
|
|
145
|
-
|
|
146
|
-
if (value_weight <= 0.0) discard;
|
|
147
|
-
|
|
148
|
-
raw_value = value_sum / value_weight;
|
|
149
|
-
|
|
150
|
-
// 4. FIX FOR BLURRINESS: Sharpen the Alpha Edge
|
|
151
|
-
// Instead of a linear 0.0->1.0 fade, we use smoothstep to tighten the edge.
|
|
152
|
-
// This makes the outer border look like a smooth curve rather than a fuzzy fog.
|
|
153
|
-
total_weight = smoothstep(0.40, 0.60, smoothing_weight);
|
|
154
|
-
|
|
155
|
-
} else {
|
|
156
|
-
// ... (keep your existing standard interpolation else block here) ...
|
|
157
|
-
float v00_q = get_value(v00_coord);
|
|
158
|
-
float v10_q = get_value(v10_coord);
|
|
159
|
-
float v01_q = get_value(v01_coord);
|
|
160
|
-
float v11_q = get_value(v11_coord);
|
|
161
|
-
|
|
162
|
-
float total_value_q = 0.0;
|
|
163
|
-
total_weight = 0.0;
|
|
164
|
-
if (v00_q < 99999.0) { float w = (1.0-f.x)*(1.0-f.y); total_value_q+=v00_q*w; total_weight+=w; }
|
|
165
|
-
if (v10_q < 99999.0) { float w = f.x*(1.0-f.y); total_value_q+=v10_q*w; total_weight+=w; }
|
|
166
|
-
if (v01_q < 99999.0) { float w = (1.0-f.x)*f.y; total_value_q+=v01_q*w; total_weight+=w; }
|
|
167
|
-
if (v11_q < 99999.0) { float w = f.x*f.y; total_value_q+=v11_q*w; total_weight+=w; }
|
|
168
|
-
|
|
169
|
-
if (total_weight <= 0.0) discard;
|
|
170
|
-
raw_value = dequantize_val(total_value_q / total_weight);
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
if (raw_value < u_data_range.x) {
|
|
175
|
-
discard;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
float colormap_coord = clamp((raw_value - u_data_range.x) / (u_data_range.y - u_data_range.x), 0.0, 1.0);
|
|
179
|
-
vec4 color = texture2D(u_colormap_texture, vec2(colormap_coord, 0.5));
|
|
180
|
-
|
|
181
|
-
if (color.a < 0.1) {
|
|
182
|
-
discard;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
float final_alpha = color.a * u_opacity * total_weight;
|
|
186
|
-
|
|
187
|
-
// OUTPUT: Use Straight Alpha (vec4(rgb, alpha)) to prevent black halo artifacts.
|
|
188
|
-
gl_FragColor = vec4(color.rgb, final_alpha);
|
|
1
|
+
precision highp float;
|
|
2
|
+
varying vec2 v_texCoord;
|
|
3
|
+
|
|
4
|
+
uniform sampler2D u_data_texture;
|
|
5
|
+
uniform sampler2D u_colormap_texture;
|
|
6
|
+
|
|
7
|
+
// Data parameters
|
|
8
|
+
uniform float u_scale;
|
|
9
|
+
uniform float u_offset;
|
|
10
|
+
uniform float u_missing_quantized;
|
|
11
|
+
uniform int u_scale_type; // 0 for linear, 1 for sqrt
|
|
12
|
+
|
|
13
|
+
// Style parameters
|
|
14
|
+
uniform float u_opacity;
|
|
15
|
+
uniform vec2 u_data_range;
|
|
16
|
+
|
|
17
|
+
// Rendering parameters
|
|
18
|
+
uniform vec2 u_texture_size;
|
|
19
|
+
uniform int u_smoothing;
|
|
20
|
+
uniform int u_is_ptype; // Flag for ptype variables
|
|
21
|
+
uniform int u_is_mrms; // NEW: Flag for MRMS data
|
|
22
|
+
|
|
23
|
+
// --- HELPER FUNCTIONS ---
|
|
24
|
+
|
|
25
|
+
// Dequantizes a signed value (-127 to 127) into a physical value
|
|
26
|
+
float dequantize_val(float q_val) {
|
|
27
|
+
if (abs(q_val - u_missing_quantized) < 0.5) {
|
|
28
|
+
return -9999.0;
|
|
29
|
+
}
|
|
30
|
+
float intermediate = q_val * u_scale + u_offset;
|
|
31
|
+
if (u_scale_type == 1) { // 1 = sqrt
|
|
32
|
+
return intermediate * abs(intermediate);
|
|
33
|
+
}
|
|
34
|
+
return intermediate;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// Samples texture, converts 0-255 to signed -128-127 range.
|
|
38
|
+
// Returns a quantized value, or a large positive sentinel for missing data.
|
|
39
|
+
float get_value(vec2 coord) {
|
|
40
|
+
float value_0_to_255 = texture2D(u_data_texture, coord).a * 255.0;
|
|
41
|
+
float val = value_0_to_255 - 128.0;
|
|
42
|
+
float missing_in_texture_range_0_255 = u_missing_quantized + 128.0;
|
|
43
|
+
if (abs(value_0_to_255 - missing_in_texture_range_0_255) < 0.5) {
|
|
44
|
+
return 99999.0; // Sentinel for "missing"
|
|
45
|
+
}
|
|
46
|
+
return val;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// Maps a physical value to a precipitation type category
|
|
50
|
+
float get_ptype_from_physical(float val) {
|
|
51
|
+
if (val < 0.0) return -1.0;
|
|
52
|
+
|
|
53
|
+
if (u_is_mrms == 1) {
|
|
54
|
+
// MRMS: 0-100 rain, 100-200 snow, 200-300 freezing rain
|
|
55
|
+
if (val < 100.0) return 0.0;
|
|
56
|
+
if (val < 200.0) return 1.0;
|
|
57
|
+
if (val < 300.0) return 2.0;
|
|
58
|
+
return -1.0;
|
|
59
|
+
} else {
|
|
60
|
+
// Models: 0-100 rain, 100-200 snow, 200-300 freezing rain, 300-400 ice pellets
|
|
61
|
+
if (val < 100.0) return 0.0;
|
|
62
|
+
if (val < 200.0) return 1.0;
|
|
63
|
+
if (val < 300.0) return 2.0;
|
|
64
|
+
if (val < 400.0) return 3.0;
|
|
65
|
+
return -1.0;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
void main() {
|
|
71
|
+
float raw_value;
|
|
72
|
+
float total_weight = 1.0; // Used for alpha feathering at data edges
|
|
73
|
+
|
|
74
|
+
if (u_smoothing == 0) { // Nearest neighbor
|
|
75
|
+
float quantized_value = get_value(v_texCoord);
|
|
76
|
+
if (quantized_value >= 99999.0) {
|
|
77
|
+
discard;
|
|
78
|
+
}
|
|
79
|
+
raw_value = dequantize_val(quantized_value);
|
|
80
|
+
|
|
81
|
+
} else { // Bilinear interpolation
|
|
82
|
+
vec2 texel_size = 1.0 / u_texture_size;
|
|
83
|
+
vec2 tex_coord_in_texels = v_texCoord * u_texture_size;
|
|
84
|
+
vec2 bl_texel_index = floor(tex_coord_in_texels - 0.5);
|
|
85
|
+
vec2 f = fract(tex_coord_in_texels - 0.5); // Interpolation factors
|
|
86
|
+
|
|
87
|
+
// Coordinates of the 4 neighboring texels
|
|
88
|
+
vec2 v00_coord = (bl_texel_index + vec2(0.5, 0.5)) * texel_size;
|
|
89
|
+
vec2 v10_coord = (bl_texel_index + vec2(1.5, 0.5)) * texel_size;
|
|
90
|
+
vec2 v01_coord = (bl_texel_index + vec2(0.5, 1.5)) * texel_size;
|
|
91
|
+
vec2 v11_coord = (bl_texel_index + vec2(1.5, 1.5)) * texel_size;
|
|
92
|
+
|
|
93
|
+
if (u_is_ptype == 1) {
|
|
94
|
+
float v00 = dequantize_val(get_value(v00_coord));
|
|
95
|
+
float v10 = dequantize_val(get_value(v10_coord));
|
|
96
|
+
float v01 = dequantize_val(get_value(v01_coord));
|
|
97
|
+
float v11 = dequantize_val(get_value(v11_coord));
|
|
98
|
+
|
|
99
|
+
float p00 = get_ptype_from_physical(v00);
|
|
100
|
+
float p10 = get_ptype_from_physical(v10);
|
|
101
|
+
float p01 = get_ptype_from_physical(v01);
|
|
102
|
+
float p11 = get_ptype_from_physical(v11);
|
|
103
|
+
|
|
104
|
+
// Calculate geometric weights
|
|
105
|
+
float w00 = (1.0 - f.x) * (1.0 - f.y);
|
|
106
|
+
float w10 = f.x * (1.0 - f.y);
|
|
107
|
+
float w01 = (1.0 - f.x) * f.y;
|
|
108
|
+
float w11 = f.x * f.y;
|
|
109
|
+
|
|
110
|
+
// 1. Calculate 'smoothing_weight' (The Raw Alpha)
|
|
111
|
+
// This is the sum of valid neighbor weights.
|
|
112
|
+
float smoothing_weight = 0.0;
|
|
113
|
+
if (p00 >= 0.0) smoothing_weight += w00;
|
|
114
|
+
if (p10 >= 0.0) smoothing_weight += w10;
|
|
115
|
+
if (p01 >= 0.0) smoothing_weight += w01;
|
|
116
|
+
if (p11 >= 0.0) smoothing_weight += w11;
|
|
117
|
+
|
|
118
|
+
if (smoothing_weight <= 0.0) discard;
|
|
119
|
+
|
|
120
|
+
// 2. Voting Logic for Color (The "Winning" Type)
|
|
121
|
+
// This preserves the sharp internal borders you liked.
|
|
122
|
+
float weight_type_0 = 0.0;
|
|
123
|
+
float weight_type_1 = 0.0;
|
|
124
|
+
float weight_type_2 = 0.0;
|
|
125
|
+
float weight_type_3 = 0.0;
|
|
126
|
+
|
|
127
|
+
if (p00 >= 0.0) { int t = int(p00); if(t==0) weight_type_0+=w00; else if(t==1) weight_type_1+=w00; else if(t==2) weight_type_2+=w00; else if(t==3) weight_type_3+=w00; }
|
|
128
|
+
if (p10 >= 0.0) { int t = int(p10); if(t==0) weight_type_0+=w10; else if(t==1) weight_type_1+=w10; else if(t==2) weight_type_2+=w10; else if(t==3) weight_type_3+=w10; }
|
|
129
|
+
if (p01 >= 0.0) { int t = int(p01); if(t==0) weight_type_0+=w01; else if(t==1) weight_type_1+=w01; else if(t==2) weight_type_2+=w01; else if(t==3) weight_type_3+=w01; }
|
|
130
|
+
if (p11 >= 0.0) { int t = int(p11); if(t==0) weight_type_0+=w11; else if(t==1) weight_type_1+=w11; else if(t==2) weight_type_2+=w11; else if(t==3) weight_type_3+=w11; }
|
|
131
|
+
|
|
132
|
+
float max_w = weight_type_0; float winning_type = 0.0;
|
|
133
|
+
if (weight_type_1 > max_w) { max_w = weight_type_1; winning_type = 1.0; }
|
|
134
|
+
if (weight_type_2 > max_w) { max_w = weight_type_2; winning_type = 2.0; }
|
|
135
|
+
if (weight_type_3 > max_w) { max_w = weight_type_3; winning_type = 3.0; }
|
|
136
|
+
|
|
137
|
+
// 3. Average value only among pixels of the winning type
|
|
138
|
+
float value_sum = 0.0;
|
|
139
|
+
float value_weight = 0.0;
|
|
140
|
+
|
|
141
|
+
if (p00 == winning_type) { value_sum += v00 * w00; value_weight += w00; }
|
|
142
|
+
if (p10 == winning_type) { value_sum += v10 * w10; value_weight += w10; }
|
|
143
|
+
if (p01 == winning_type) { value_sum += v01 * w01; value_weight += w01; }
|
|
144
|
+
if (p11 == winning_type) { value_sum += v11 * w11; value_weight += w11; }
|
|
145
|
+
|
|
146
|
+
if (value_weight <= 0.0) discard;
|
|
147
|
+
|
|
148
|
+
raw_value = value_sum / value_weight;
|
|
149
|
+
|
|
150
|
+
// 4. FIX FOR BLURRINESS: Sharpen the Alpha Edge
|
|
151
|
+
// Instead of a linear 0.0->1.0 fade, we use smoothstep to tighten the edge.
|
|
152
|
+
// This makes the outer border look like a smooth curve rather than a fuzzy fog.
|
|
153
|
+
total_weight = smoothstep(0.40, 0.60, smoothing_weight);
|
|
154
|
+
|
|
155
|
+
} else {
|
|
156
|
+
// ... (keep your existing standard interpolation else block here) ...
|
|
157
|
+
float v00_q = get_value(v00_coord);
|
|
158
|
+
float v10_q = get_value(v10_coord);
|
|
159
|
+
float v01_q = get_value(v01_coord);
|
|
160
|
+
float v11_q = get_value(v11_coord);
|
|
161
|
+
|
|
162
|
+
float total_value_q = 0.0;
|
|
163
|
+
total_weight = 0.0;
|
|
164
|
+
if (v00_q < 99999.0) { float w = (1.0-f.x)*(1.0-f.y); total_value_q+=v00_q*w; total_weight+=w; }
|
|
165
|
+
if (v10_q < 99999.0) { float w = f.x*(1.0-f.y); total_value_q+=v10_q*w; total_weight+=w; }
|
|
166
|
+
if (v01_q < 99999.0) { float w = (1.0-f.x)*f.y; total_value_q+=v01_q*w; total_weight+=w; }
|
|
167
|
+
if (v11_q < 99999.0) { float w = f.x*f.y; total_value_q+=v11_q*w; total_weight+=w; }
|
|
168
|
+
|
|
169
|
+
if (total_weight <= 0.0) discard;
|
|
170
|
+
raw_value = dequantize_val(total_value_q / total_weight);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
if (raw_value < u_data_range.x) {
|
|
175
|
+
discard;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
float colormap_coord = clamp((raw_value - u_data_range.x) / (u_data_range.y - u_data_range.x), 0.0, 1.0);
|
|
179
|
+
vec4 color = texture2D(u_colormap_texture, vec2(colormap_coord, 0.5));
|
|
180
|
+
|
|
181
|
+
if (color.a < 0.1) {
|
|
182
|
+
discard;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
float final_alpha = color.a * u_opacity * total_weight;
|
|
186
|
+
|
|
187
|
+
// OUTPUT: Use Straight Alpha (vec4(rgb, alpha)) to prevent black halo artifacts.
|
|
188
|
+
gl_FragColor = vec4(color.rgb, final_alpha);
|
|
189
189
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
// The view-projection matrix from the Mapbox camera
|
|
2
|
-
uniform mat4 u_matrix;
|
|
3
|
-
|
|
4
|
-
// Attributes passed from the vertex buffer
|
|
5
|
-
attribute vec2 a_position; // Vertex position in Mercator coordinates (0.0 to 1.0)
|
|
6
|
-
attribute vec2 a_texCoord; // Texture coordinate (0.0 to 1.0)
|
|
7
|
-
|
|
8
|
-
// Passed to the fragment shader
|
|
9
|
-
varying vec2 v_texCoord;
|
|
10
|
-
|
|
11
|
-
void main() {
|
|
12
|
-
// This is the intended use.
|
|
13
|
-
// The u_matrix correctly transforms the 2D Mercator coordinate (a_position)
|
|
14
|
-
// into the final 4D clip space position for the GPU.
|
|
15
|
-
// We construct a vec4 with z=0.0 and w=1.0 to treat it as a point on the map's surface.
|
|
16
|
-
gl_Position = u_matrix * vec4(a_position, 0.0, 1.0);
|
|
17
|
-
|
|
18
|
-
// Pass the texture coordinate to the fragment shader
|
|
19
|
-
v_texCoord = a_texCoord;
|
|
1
|
+
// The view-projection matrix from the Mapbox camera
|
|
2
|
+
uniform mat4 u_matrix;
|
|
3
|
+
|
|
4
|
+
// Attributes passed from the vertex buffer
|
|
5
|
+
attribute vec2 a_position; // Vertex position in Mercator coordinates (0.0 to 1.0)
|
|
6
|
+
attribute vec2 a_texCoord; // Texture coordinate (0.0 to 1.0)
|
|
7
|
+
|
|
8
|
+
// Passed to the fragment shader
|
|
9
|
+
varying vec2 v_texCoord;
|
|
10
|
+
|
|
11
|
+
void main() {
|
|
12
|
+
// This is the intended use.
|
|
13
|
+
// The u_matrix correctly transforms the 2D Mercator coordinate (a_position)
|
|
14
|
+
// into the final 4D clip space position for the GPU.
|
|
15
|
+
// We construct a vec4 with z=0.0 and w=1.0 to treat it as a point on the map's surface.
|
|
16
|
+
gl_Position = u_matrix * vec4(a_position, 0.0, 1.0);
|
|
17
|
+
|
|
18
|
+
// Pass the texture coordinate to the fragment shader
|
|
19
|
+
v_texCoord = a_texCoord;
|
|
20
20
|
}
|
package/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { MapManager } from './src/MapManager';
|
|
2
|
-
export { WeatherLayerManager } from './src/WeatherLayerManager';
|
|
1
|
+
export { MapManager } from './src/MapManager';
|
|
2
|
+
export { WeatherLayerManager } from './src/WeatherLayerManager';
|
|
3
3
|
export { default as GridRenderLayer } from './src/GridRenderLayerNativeComponent';
|
package/ios/AguaceroPackage.m
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
#import <React/RCTBridgeModule.h>
|
|
2
|
-
#import <React/RCTViewManager.h>
|
|
3
|
-
|
|
4
|
-
// This file acts as a central manifest for all your native code.
|
|
5
|
-
// The autolinker will find this and use it to register your modules.
|
|
6
|
-
|
|
7
|
-
// --- Make sure these module names match your Swift/Objective-C class names ---
|
|
8
|
-
|
|
9
|
-
// Exposing the Swift module to Objective-C
|
|
10
|
-
@interface RCT_EXTERN_MODULE(WeatherFrameProcessorModule, NSObject)
|
|
11
|
-
@end
|
|
12
|
-
|
|
13
|
-
// Exposing the Swift module to Objective-C
|
|
14
|
-
@interface RCT_EXTERN_MODULE(InspectorModule, NSObject)
|
|
15
|
-
@end
|
|
16
|
-
|
|
17
|
-
// Exposing the ViewManager to Objective-C
|
|
18
|
-
@interface RCT_EXTERN_MODULE(GridRenderLayerManager, RCTViewManager)
|
|
1
|
+
#import <React/RCTBridgeModule.h>
|
|
2
|
+
#import <React/RCTViewManager.h>
|
|
3
|
+
|
|
4
|
+
// This file acts as a central manifest for all your native code.
|
|
5
|
+
// The autolinker will find this and use it to register your modules.
|
|
6
|
+
|
|
7
|
+
// --- Make sure these module names match your Swift/Objective-C class names ---
|
|
8
|
+
|
|
9
|
+
// Exposing the Swift module to Objective-C
|
|
10
|
+
@interface RCT_EXTERN_MODULE(WeatherFrameProcessorModule, NSObject)
|
|
11
|
+
@end
|
|
12
|
+
|
|
13
|
+
// Exposing the Swift module to Objective-C
|
|
14
|
+
@interface RCT_EXTERN_MODULE(InspectorModule, NSObject)
|
|
15
|
+
@end
|
|
16
|
+
|
|
17
|
+
// Exposing the ViewManager to Objective-C
|
|
18
|
+
@interface RCT_EXTERN_MODULE(GridRenderLayerManager, RCTViewManager)
|
|
19
19
|
@end
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import Foundation
|
|
2
|
-
import simd
|
|
3
|
-
|
|
4
|
-
// Must match the fragment shader's uniform structure
|
|
5
|
-
struct FragmentUniforms {
|
|
6
|
-
var opacity: Float
|
|
7
|
-
var dataRange: SIMD2<Float>
|
|
8
|
-
var scale: Float
|
|
9
|
-
var offset: Float
|
|
10
|
-
var missingQuantized: Float
|
|
11
|
-
var textureSize: SIMD2<Float>
|
|
12
|
-
var smoothing: Int32
|
|
13
|
-
var scaleType: Int32
|
|
14
|
-
var isPtype: Int32
|
|
15
|
-
var isMRMS: Int32
|
|
1
|
+
import Foundation
|
|
2
|
+
import simd
|
|
3
|
+
|
|
4
|
+
// Must match the fragment shader's uniform structure
|
|
5
|
+
struct FragmentUniforms {
|
|
6
|
+
var opacity: Float
|
|
7
|
+
var dataRange: SIMD2<Float>
|
|
8
|
+
var scale: Float
|
|
9
|
+
var offset: Float
|
|
10
|
+
var missingQuantized: Float
|
|
11
|
+
var textureSize: SIMD2<Float>
|
|
12
|
+
var smoothing: Int32
|
|
13
|
+
var scaleType: Int32
|
|
14
|
+
var isPtype: Int32
|
|
15
|
+
var isMRMS: Int32
|
|
16
16
|
}
|